[SOLVED] Re: WOHyperLink-> WOPopupButton and WOForm's action using WORedirect
[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