I have a custom InternalErrorPage, which I put into ApplicationSettings as follows:
getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);
getExceptionSettings().setUnexpectedExceptionDisplay(
IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
getRequestCycleSettings().setUnexpectedExceptionDisplay(
IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
I want to display stack traces on this page (if I’m in development mode, of course). How can I do this?
In Wicket 1.4 you can use
Have look at the Wicket wiki and the mailing list for further explanations.
In Wicket 1.5 onRuntimeException was removed. Instead you can