Redirect to Error page in Wicket
I was looking for a solution to redirect to an error page in wicket and found this class , RestartResponseAtInterceptPageException , causes wicket to interrupt current request processing and immediately redirect to an intercept page.
For example,
throw new RestartResponseAtInterceptPageException(new ErrorPage(“User does not have permission to view this screen”));
If you need to redirect to an intercept page without interrupting the current request processing , call RedirectToInteceptPage(Page) instead.
-Dhanya

