You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Peter Ross <pr...@missioncriticalit.com> on 2009/05/05 03:09:11 UTC

Request to improve documentation of onRuntimeException

Hi,

I'm looking at overriding onRuntimeException[1]to do some cleanup if
there was an exception,however I want the standard error handling page
to be displayed.

I thought I would need use getInternalErrorPage and then do some
tricky stuff to instantiate it, but after inspecting
AbstractRequestCycleProcessor then it appears that just returning null
is sufficient to get the standard wicket error handling page.

It would be nice if the documentation stated that returning null will
leave it up to the RequestCycleProcessor to display what page to
display, and that the standard wicket RequestCycleProcessor will
simply display the default error page in this case.

Regards
Pete

[1] http://wicket.apache.org/docs/1.4/org/apache/wicket/RequestCycle.html#onRuntimeException(org.apache.wicket.Page,%20java.lang.RuntimeException)

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