On Tue, Nov 5, 2013 at 10:46 PM, dgn <[email protected]> wrote:

> Here's what I've come up with.
>
> My error page, CustomErrorPage.java, has 3 constructors:
> 1) no-arg
> 2) CustomErrorPage(PageParameters pp)
> 3) CustomErrorPage(Exception e)
>
> Once I added Session.get().bind() immediately before returning the custom
> error page instance I get the desired page dispatching. This works with all
> three constructors, including the one with the Exception parameter so I now
> have access to, and can display, information related to the exception.
>
> Thanks for the suggestion


You were running stateless and the error page was not saved for the
redirect.
Another solution is to use:
new RenderPageRequestHandler(pageProvider, RedirectPolicy.NEVER_REDIRECT)


> .
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Cannot-get-to-desired-error-page-on-handling-RuntimeException-in-AbstractRequestCycleListener-onExce-tp4662078p4662149.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to