button = new Button("redirectToPageWithInterceptionBtn") {
private static final long serialVersionUID = 1L;
@Override
public void onSubmit() {
throw new RestartResponseAtInterceptPageException(SayHiPage.class);
}
};
form.add(button);
button = new Button("redirectToURLBtn") {
private static final long serialVersionUID = 1L;
@Override
public void onSubmit() {
throw new RedirectToUrlException("http://wicketdemo.sourceforge.net");
}
};
form.add(button);
button = new Button("redirectToDetourBtn") {
private static final long serialVersionUID = 1L;
@Override
public void onSubmit() {
throw new RestartResponseAtInterceptPageException(ContinuationPage.class);
}
};
form.add(button);
}