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

Re: URL generation

2011-02-05 Thread Uwe Schäfer
On 02/04/2011 08:37 PM, Erik van Oosten wrote: Hi Erik, I sometimes use absolute URLs in a project. For code see https://issues.apache.org/jira/browse/WICKET-1974 splendid, thanks! uwe - To unsubscribe, e-mail:

URL generation

2011-02-04 Thread Uwe Schäfer
Hi i am working on a wicket app which is to be included in some 3rd party page. the page somewhat uses a thing like $.load to include the wicket-generated code. To sum up, wicket has no idea that its created page will be sliced into pieces and included in some other page. any url wicket

Re: URL generation

2011-02-04 Thread Erik van Oosten
Hi Uwe, I sometimes use absolute URLs in a project. For code see https://issues.apache.org/jira/browse/WICKET-1974 Regards, Erik. Op 04-02-11 16:46, Uwe Schäfer schreef: Hi i am working on a wicket app which is to be included in some 3rd party page. the page somewhat uses a thing like

Custom url generation

2010-02-16 Thread Vit Rozkovec
Dear friends in code, how would it be possible to make wicket work in a scenario like this: Standard generation of urls: http://www.mysite.com/site/user1/home http://www.mysite.com/site/user1/gallery http://www.mysite.com/site/user1/shop Virtual host aware generation of url: