Just a little question.
How can I implements a double redirect between three page?
Es.
public class A extends BasePage{
public A() {
super("A");
setResponsePage(new B());
}
}
public class B extends BasePage{
public B() {
super("B");
setResponsePage(new C());
}
}
Wicket just stop at Page B without redirect to page C.
Don’t ask why I have to do this this. I only need to know if is possibile even not using setResponsePage.
Thanks
Wicket will use the last executed setResponsePage() to determine its redirect-page. In your case, that’s setResponsePage(new B()) and not setResponsePage(new C()). Indeed, the latter is executed while constructing B.
If you would do
it should work, and you would get a redirect to C!