Questions Regarding Wicket URL Generation

2011-05-11 Thread Carlo Camerino
Hi There, I'm mounting bookmarkable pages in the Wicket Application. For example, mount(index, IndexPage.class); mount(confirmPage, ConfirmPage.class); I'm quite successful when using the following code setResponsePage(IndexPage.class); http://localhost:8080/application/index However, when I

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Andrea Del Bene
Hi Carlo, what kind of error/exception do you get when you use setResponsePage(new ConfirmPage())? Does it work if you use setResponsePage( ConfirmPage.class); Hi There, I'm mounting bookmarkable pages in the Wicket Application. For example, mount(index, IndexPage.class);

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Martin Grigorov
There is no error. Just the generated url contains a state (wicket:interface=.) which means use this page instance when the user tries to open this Url. Using setResponsePage(Class) has no state and creates a Url which when targeted will create a *new* page instance. On Wed, May 11, 2011 at

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Andrea Del Bene
Sorry, I've misread mail subject :) There is no error. Just the generated url contains a state (wicket:interface=.) which means use this page instance when the user tries to open this Url. Using setResponsePage(Class) has no state and creates a Url which when targeted will create a *new*

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Clint Checketts
Try a HybridUrlEncodingStrategy for your mount On Wednesday, May 11, 2011, Carlo Camerino carlo.camer...@gmail.com wrote: Hi There, I'm mounting bookmarkable pages in the Wicket Application. For example, mount(index, IndexPage.class); mount(confirmPage, ConfirmPage.class); I'm quite