This works perfectly fine for normal requests though.. the issue is with the
ajax requests only. For ex, if i have a DropDownChoice, which has
AjaxFormComponentUpdatingBehaviour on onchange, this is where the problem
kick's in. if the onUpdate method in AjaxFormComponentUpdatingBehaviour then
browser is not able to render the exception page.
wicketworker wrote:
>
> Hi,
> I am having issues with custom exception pages for AjaxRequests. I
> debugged and found that wicket is indeed intercepting the RuntimeException
> and returning the ExceptionPage. But the problem is at the client side(in
> Browser) this exception page is not getting rendered in the browser
> window. Any clues how to resolve this issue.
>
> Here is the code in Application class
> @Override
> public final RequestCycle newRequestCycle(final Request request, final
> Response response) {
> return new MyRequestCycle (this, (WebRequest)request,
> (WebResponse)response);
> }
>
> and here is the code in MyRequestCycle, here i put the break point and it
> is returning MyExceptionPage
> @Override
> public final Page onRuntimeException(final Page cause, final
> RuntimeException e) {
> return new MyExceptionPage(e);
> }
>
> Thanks in Advance,
>
>
--
View this message in context:
http://www.nabble.com/ExceptionPage-issues-for-AjaxRequest-tp21814647p21816042.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]