What about
redirectToInterceptPage(new FormPage());
and in FormPage onSubmit:
if (!continueToOriginalDestination()) {
setResponsePage(Application.get().getHomePage());
}
Regards,
Bernard
On Wed, 1 Sep 2010 20:30:20 -0700, you wrote:
>do not pass the page, pass the page reference, see page#getpagereference()
>
>-igor
>
>On Wed, Sep 1, 2010 at 6:21 PM, Chris Merrill <[email protected]> wrote:
>> On 9/1/2010 7:26 PM, Chris Colman wrote:
>>> I have a form/page that can be invoked from different pages so I can't
>>> easily specify which page should be returned to after submit.
>>
>> When I needed to do this, I passed the original page into the page
>> constructor
>> where it was passed to the onSubmit() handler. Then the onSubmit() method
>> set it as the return page:
>> getRequestCycle().setResponsePage(_return_to_page);
>>
>>
>> --
>> ------------------------------------------------------------------------ -
>> Chris Merrill | Web Performance, Inc.
>> [email protected] | http://webperformance.com
>> 919-433-1762 | 919-845-7601
>>
>> Web Performance: Website Load Testing Software & Services
>> ------------------------------------------------------------------------ -
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]