• 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: Posting vars programatically from component to Direct Action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Posting vars programatically from component to Direct Action
      • From: Arturo Pérez <email@hidden>
References: 
 >Re: Posting vars programatically from component to Direct Action (From: Arturo Pérez <email@hidden>)

  • Prev by Date: Re: Posting vars programatically from component to Direct Action
  • Next by Date: Re: Posting vars programatically from component to Direct Action
  • Previous by thread: Re: Posting vars programatically from component to Direct Action
  • Next by thread: Re: Posting vars programatically from component to Direct Action
  • Index(es):
    • Date
    • Thread