you  need to do  requestcycle.scheduleRequestHandlerAfterCurrent(new
RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT));

On Sat, Mar 3, 2012 at 10:53 AM, Douglas Ferguson <the...@gmail.com> wrote:
>
> In migrating to wicket 1.5 from 1.4 I used this to redirect to my error page 
> when an exception is thrown.
> But when I do this it is trying to instantiate a new copy of the page rather 
> than using the one I pass in.
>
>                IPageProvider provider = new PageProvider(new 
> ClientErrorPage(ex));
>                return new RenderPageRequestHandler(provider, 
> RedirectPolicy.ALWAYS_REDIRECT);



-- 
thank you,

regards,
Vineet Semwal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to