Re: passing WOTextField values to DirectAction?
Re: passing WOTextField values to DirectAction?
- Subject: Re: passing WOTextField values to DirectAction?
- From: Chuck Hill <email@hidden>
- Date: Tue, 11 Nov 2003 11:47:17 -0800
- Check that it really is inside the form.
- Check that it does not have the same name as some other component in the
form.
- Try changing the form method to "post".
Chuck
At 02:38 PM 11/11/2003 -0500, james o wrote:
>thanks will. i know how to get the value from a DA binding.
>
>my problem is that the value from the WOTextField is not getting passed
>to the DA.
>
>if i create another binding of a String that is not set inside of the
>WOForm it gets passed to the DA fine. some reason WO doesn't process
>the WOTextField value before sending calling the DA - i'm missing
>something with the WOForm (WoTextField) >> to >> DA handling.
>
>
>On Tuesday, November 11, 2003, at 02:21 PM, Will Scheidegger wrote:
>
>> Hi James
>>
>> You'll need to set the name binding of the WOTextField to something
>> smart, e.g. "searchString". Then, in the DirectAction that's being
>> called, you can get the value with this method:
>>
>> String value = request().stringFormValueForKey("searchString");
>>
>> Hope this helps.
>>
>> - Will
>>
>./james
>
>{ primax STUDIO : http://primaxSTUDIO.com : 513.772.1223 }
>
>_______________________________________________
>WebObjects-dev mailing list
>email@hidden
>http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.