• 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
[SOLVED] Re: WOHyperLink-> WOPopupButton and WOForm's action using WORedirect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] Re: WOHyperLink-> WOPopupButton and WOForm's action using WORedirect


  • Subject: [SOLVED] Re: WOHyperLink-> WOPopupButton and WOForm's action using WORedirect
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Thu, 21 Jul 2005 09:52:02 -0700

The WORedirect works fine, just set it as the return of the WOForm's action method as Sacha notes below, don't use the WOForm's <href>.

Interestingly, I had not used that call before, glad to add it to the toolbox.

Thanks Sacha,

On Jul 20, 2005, at 6:24 PM, Sacha Mallais wrote:

On Jul 20, 2005, at 5:25 PM, Baiss Eric Magnusson wrote:

I had a WOHyperLink which would go play a movie when clicked on.

Now I want the movie to be selected from a WOPopupButton populated with movie file names. I set the WOPopupButton's additional <onChange> binding to <"submit();"> and bound the WOForm's <href> attribute to a method returning a String, which is a concatenation of the WOPopupButton's <selection> attribute and a path.

But if I set the <href> attribute of a WOForm, the RR look is not called during Submit and the re-direction occurs to the value of the <href> which is set at the time the page is first rendered, when the file name is null, not at the time of the Submit.


I would just do a WORedirect:
WORedirect redirect = new WORedirect( context() );
redirect.setURL( moviePath() ); // A little strange that it doesn't take a URL object, but whatever...
return redirect;


sacha

----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>


_______________________________________________ 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
References: 
 >WOPopupButton and WOForm's <href> (From: Baiss Eric Magnusson <email@hidden>)
 >Re: WOPopupButton and WOForm's <href> (From: Sacha Mallais <email@hidden>)

  • Prev by Date: Re: Webobjects-dev Digest, Vol 2, Issue 414
  • Next by Date: Re: Encoding Error on Windows 2003 Box
  • Previous by thread: Re: WOPopupButton and WOForm's <href>
  • Next by thread: Bug in WOStatsPage WO 5.3
  • Index(es):
    • Date
    • Thread