Re: Posting vars programatically from component to Direct Action
Re: Posting vars programatically from component to Direct Action
- Subject: Re: Posting vars programatically from component to Direct Action
- From: Randall Perry <email@hidden>
- Date: Fri, 16 Apr 2004 23:38:03 -0400
I can post form vars from one component to another (or to a Direct Action)
by simply naming bound form fields.
So if I have a textbox that's bound to userName and I also set the name
property of the textbox to "userName" I can grab the key/value pair from the
succeeding page from the request using request().formValueForKey("userName")
because WO 'posts' the vars from form elements to the next page.
So, I'm wondering how to do the same thing in java, without having an actual
bound textbox on the page. It's the same idea as having an input of type
'hidden' in an HTML form.
>
> On Apr 16, 2004, at 7:36 PM, Randall Perry wrote:
>
>> Now I need to post variables from a WO component to a direct action
>> programatically, rather than from bound WO form elements.
>>
>
> I can't parse the above. You're trying to hit a url from a
> WOComponent? Or you're trying to get a WOComponent to create a url
> with parameters? I don't understand what you'd like to know.
>
> But, I can offer the API WOContext.directActionURLForActionNamed.
> Maybe that does what you might be looking for.
> ----
> WO in philadelphia - wanna cheesesteak with that?
> Please visit webobjects.meetup.com.
--
Randall Perry
sysTame
Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales
http://www.systame.com/
_______________________________________________
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.