• 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
Passing URL parameters to component via direct action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing URL parameters to component via direct action


  • Subject: Passing URL parameters to component via direct action
  • From: John Pollard <email@hidden>
  • Date: Mon, 11 Aug 2008 13:10:58 +0100

Hi List,

I have a page containing a WOForm with some dynamically created WOPopUpButtons. The WOForm is set to submit a Direct Action request (using get as opposed to post).

The request received by the DA method contains information from a couple of hidden fields in the form which allows me to construct and configure the right page which is actually just a new instance of the same page.

Is there a really simple way to get the WOPopUpButton values from the request DA URL into the WOForm as if the WOForm had been submitted with those values as a component action?

I tried calling takeValuesFromRequest(request(), context()) from my DA method but that produced a NPE. Perhaps this method can't work from a DA request/context?

So is there a way to feed the DA request WOPopUpButton values into the WOForm of my page?

Obviously I can parse the DA request, dig out the WOPopUpButton selections and pass them to the page myself and set the popup selections, but it strikes me that there ought to be an easy way.

Thanks, John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Passing URL parameters to component via direct action
      • From: Lachlan Deck <email@hidden>
  • Prev by Date: Re: Inheritance and relationships
  • Next by Date: Re: Passing URL parameters to component via direct action
  • Previous by thread: Re: WebService and HTTPS
  • Next by thread: Re: Passing URL parameters to component via direct action
  • Index(es):
    • Date
    • Thread