Thanks a lot, Martin!

-----Original Message-----
From: Martin Grigorov [mailto:[email protected]] 
Sent: Thursday, December 08, 2011 1:07 PM
To: [email protected]
Subject: Re: How to redirect to a non- Wicket page in Wicket 1.5?

See the javadoc of
org.apache.wicket.request.RequestHandlerStack.replaceAll(IRequestHandler).

On Thu, Dec 8, 2011 at 9:43 PM, Fang Lin <[email protected]> wrote:
> Thanks Martin!
>
> Do you know when replaceAllRequestHandlers  should be used?
>
> -----Original Message-----
> From: Martin Grigorov [mailto:[email protected]]
> Sent: Thursday, December 08, 2011 12:33 PM
> To: [email protected]
> Subject: Re: How to redirect to a non- Wicket page in Wicket 1.5?
>
> On Thu, Dec 8, 2011 at 8:59 PM, Fang Lin <[email protected]> wrote:
>> Just want to double check it.
>>
>> Before 1.5, we use getRequestCycle().setRequestTarget(new
>> RedirectRequestTarge(URL));
>>
>> With 1.5, is this the right way?
>> getRequestCycle().replaceAllRequestHandlers   (new 
>> RedirectRequestHandler (URL));
>
> The replacement is .scheduleRequestHandlerAfterCurrent() (I don't have 
> running IDE in front of me, maybe the name is not exact)
>
>>
>>
>>
>> -Fang
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to