I use RestartResponseException in exception handler (IRequestCycleListener) for redirection on login page and it doesn't work. I see exception in logs but no changes in UI.
@Override
public IRequestHandler onException(RequestCycle cycle, Exception ex) {
if (couldNotLock) {
getSessionStore().invalidate(cycle.getRequest());
throw new RestartResponseException(LoginPage.class);
}
return null;
}