To not have the page version in the URL your page should be stateless. See StatelessChecker from wicket-devutils to find all stateful components in your pages.
The page version changes when there are changes in the hierarchy of the page. By just changing the value of a request parameter this wont happen. Better upgrade to 1.5-RC4.2. There are many improvements. On Fri, Jun 10, 2011 at 4:59 PM, Gabriel Moreira <[email protected]> wrote: > 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 > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
