Okay, I found this, the first request URL and query string are:
/EquitableSharing/?19-1.IBehaviorListener.1-share-form-toolContainer-declineSharingButton
The second is:
/EquitableSharing/wicket/bookmarkable/gov.usdoj.afms.esp.application.ESPApplicationErrorPage
So it seems like even though the error page RUNS in the first request,
wicket is trying to redirect to it in order to make the URL bookmarkable.
Of course, nobody wants a bookmarkable error page, that would just be silly.
So I must be triggering this behavior by accident somewhere.
The error page itself just extends WebPage. In the app init, the error page
is set up like so:
// set the error page
IApplicationSettings settings = getApplicationSettings();
settings.setInternalErrorPage(ESPApplicationErrorPage.class);
this.getRequestCycleListeners().add(new
AbstractRequestCycleListener(){
public IRequestHandler onException(RequestCycle cycle,
Exception ex) {
cycle.setMetaData(EXCEPTION_KEY, ex);
return null;
//cycle.getRequestHandlerScheduledAfterCurrent();
}
});
getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
We have some calls to mountPage in the app init, but the error page is not
involved. Where is this behavior coming from I wonder?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-error-page-runs-twice-tp4668093p4668113.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]