• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOForm queryDictionary binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOForm queryDictionary binding


  • Subject: Re: WOForm queryDictionary binding
  • From: Dirk Bajohr <email@hidden>
  • Date: Wed, 25 Aug 2004 14:41:21 +0200

Your input values can stay in the dictionary, just set the names of the input fields.

The usual component actions won't be called if you use direct actions, that's why you can't submit a dictionary or any other object. Only values, that belong to the form, will be submitted (including hidden input), you don't have to do anything for that. If you want to set some hidden input fields, you have to set them BEFORE the page is generated by WO.

In the direct action method you need to get those values. A small correction to my last mail: the methods are request().stringFormValueForKey(...) and request().numericFormValueForKey(...). See the WORequest documentation for more information.

Hope that helps,
Dirk

Am 25.08.2004 um 14:14 schrieb Erwin:

You mean in the ultimate form (form5) I should set the names for all input fields (includding those in other forms...)
good trick...
As all input values (form1/2/3/4) are in a NSDictionary I thought I could pass this dictionary from the ultimate form (form5) ....


erwin


Le Aug 25, 2004, ` 1:15 PM, Dirk Bajohr a icrit :

Set the names of the input elements and get the values in your DirectAction with stringFormValueForKey("input1") or numberFormValueForKey("input2"), use the names that you specified in the form.


Am 25.08.2004 um 12:42 schrieb Erwin:

As I have 5 forms on my searchPage, I set up all criterias in a query dictionary
then I send it to a DirectAction 'FindProductAction' to handle the request...


I used the queryDictionary binding of my form but the DirectAction doesn't seems to get it
it got just the request from the form where I put my submit button.....


Where can I find information on WOForm usage and binding... the Apple WOForm doc is just too short (5 lines...)

I bought 'WebObjects for mac os x' book and 2 other but I did not received them yet.. (hopeI'll find this kind of information...)

thanks
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.



--
Dirk Bajohr
iSOLUTION - Individuelle Software fuer moderne Kommunikation

Hauptstr. 50
53757 Sankt Augustin

T +49 2241 921567-0
F +49 2241 921567-89
http://www.isolution.de



--
Dirk Bajohr
iSOLUTION - Individuelle Software fuer moderne Kommunikation

Hauptstr. 50
53757 Sankt Augustin

T +49 2241 921567-0
F +49 2241 921567-89
http://www.isolution.de
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >WOForm queryDictionary binding (From: Erwin <email@hidden>)
 >Re: WOForm queryDictionary binding (From: Dirk Bajohr <email@hidden>)
 >Re: WOForm queryDictionary binding (From: Erwin <email@hidden>)

  • Prev by Date: Re: Twofer: MySQL and java.lang.Boolean? WO Class like NSValueTransformer?
  • Next by Date: Re: Still hopeful for D2WList advice
  • Previous by thread: Re: WOForm queryDictionary binding
  • Next by thread: Postgresql, booleans and EOM
  • Index(es):
    • Date
    • Thread