/** * * @see org.apache.wicket.Component#onAfterRender() */ @Override protected void onAfterRender() { super.onAfterRender(); // only in development mode validate the headers if (Application.DEVELOPMENT.equals(getApplication().getConfigurationType())) { // Ignore if an exception and a redirect happened in between (e.g. // RestartResponseAtInterceptPageException) if (getRequestCycle().getResponsePage() == this) { validateHeaders(); } } }
final Page responsePage = requestCycle.getResponsePage();
final Page responsePage = requestCycle.getResponsePage();