Re: passing WOTextField values to DirectAction?
Re: passing WOTextField values to DirectAction?
- Subject: Re: passing WOTextField values to DirectAction?
- From: Michael Warner <email@hidden>
- Date: Tue, 11 Nov 2003 12:31:24 -0800
In your direct action class, in your method, do something like this:
if(request().stringFormValueForKey("yourVar") != null)
String yourVar =
(String)request().stringFormValueForKey("yourVar");
else
yourVar = "";
Be sure, on your page, to include a form. Use the form to send the
direct action.
bind actionClass and directActionName (the drop downs should let you
hook things up correctly
if you have already written your method in the your direct action
class.)
yourVar should be static and the name field should be filled it.
Your submit button should also be static.
Mike W.
On Tuesday, November 11, 2003, at 11:03 AM, james o wrote:
> where do i make the direct action bindings to send a value from a
> WOTextField?
>
> i have a form with a WOTextField inside of it. i have a String
> "searchValue" bound to the text field. i can't seem to get the
> string value sent to the Direct Action
>
> i've bound "?searchString = searchValue;" to the Submit button, and to
> the WOForm, etc... trying different combinations and none seem to > work.
>
> thanks for any help,
> ./james
>
> { primax STUDIO : http://primaxSTUDIO.com : 513.772.1223 }
> _______________________________________________
> 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.
_______________________________________________
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.