How do I redirect to another page using Wicket? IIRC, some exception has to be thrown in the constructor, but I don\'t remember which one. Thanks in advance.
A quick search for all *Exception.java files in wicket revealed it. One has to throw a RestartResponseAtInterceptPageException:
*Exception.java
RestartResponseAtInterceptPageException
public MyPage() { ... if (redirect) { throw new RestartResponseAtInterceptPageException(targetPage); } ... }