Hi all,
I'm trying to have a bookmarkable page that functions in a way that the
version param is not printed into the URL.
The code follows like this:
Application () {
mountPage("/study", Study.class);
}
Study(PageParameters pp) {
String id = pp.get("id").toString();
... // constructs webpage
}
The problem is that when I go to:
http://localhost/study?id=A
Wicket rewrites the URL to this form:
http://localhost/study?0&id=A
If I change the id parameter, let's say, to 'id=B', it continues to display
the 0 version of that page.
Seems to be the right behaviour if the parameter was the same. Now that it
has changed its value, shouldn't have Wicket redirected me to the newer
version automatically, like this?
http://localhost/study?1&id=B
I'm running Wicket 1.5-RC1.
Is there any way to fix this, or surround this problem?
Thank you