Consider Wicket WebPage, which redirects to another page (based on some logic omitted from here):
public class SomePage extends WebPage {
public SomePage(PageParameters parameters) {
setResponsePage(AnotherPage.class);
setRedirect(true);
}
}
I need to pass the PageParameters pages to this other page, and this seems to be the way to do this:
setResponsePage(new AnotherPage(parameters));
However, when creating such a new page object, I get a URL, for example /?wicket:interface=:1::::, instead of a clean one /another. AnotherPage is defined as:
@MountPath(path = "another")
public class AnotherPage extends WebPage {
}
(Where is MountPath from org.wicketstuff.annotation.mount package.)
So my questions are:
- Any other way to pass parameters?
- How to save URL? Is the above Wicket Stuff restriction in place of the main Wicket?
Update
, , , - setResponsePage(new AnotherPage(parameters)) - setRedirect(true). URL- ( SomePage), . , , ( , "" )!
( "SomePage" ) , -, URL-. , , .: -/
, , . , .