RE: BookmarkablePageLink works differently in 1.5?
attach a patch to a jira issue. New JIRA issue created: https://issues.apache.org/jira/browse/WICKET-4079 Looks like others have had the same issue so it seems like it would be a generally useful improvement: http://stackoverflow.com/questions/6154430/how-do-i-mimic-hybridurlcodingstrategy-in-wicket-1-5 On Thu, Sep 22, 2011 at 7:41 PM, Chris Colman chr...@stepaheadsoftware.com wrote: mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); I could implement a CustomerPageParameterEncoder by copying what 1.4 did. It might be useful if 1.5 provided a PageParameterEncoder that encoded/decoded in the 1.4 style to make it easier for people porting from 1.4 - 1.5. -igor On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
RE: BookmarkablePageLink works differently in 1.5?
mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); I could implement a CustomerPageParameterEncoder by copying what 1.4 did. It might be useful if 1.5 provided a PageParameterEncoder that encoded/decoded in the 1.4 style to make it easier for people porting from 1.4 - 1.5. -igor On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BookmarkablePageLink works differently in 1.5?
attach a patch to a jira issue. -igor On Thu, Sep 22, 2011 at 7:41 PM, Chris Colman chr...@stepaheadsoftware.com wrote: mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); I could implement a CustomerPageParameterEncoder by copying what 1.4 did. It might be useful if 1.5 provided a PageParameterEncoder that encoded/decoded in the 1.4 style to make it easier for people porting from 1.4 - 1.5. -igor On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: BookmarkablePageLink works differently in 1.5?
i meant: mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); -igor Arh! I didn't think of that. Would the PageParameterEncoder passed into the MountedMapper be used by any BookmarkablePageLink instance when it encodes the URL or does the encoder need to be separately specified for the BookmarkablePageLink? On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BookmarkablePageLink works differently in 1.5?
Use need to use PageParameters.set(int, Object) to add indexed parameter. I guess you pass #set(String, Object) instead. See #testEncodeX() methods in org.apache.wicket.request.mapper.MountedMapperTest On Wed, Sep 21, 2011 at 9:17 AM, Chris Colman chr...@stepaheadsoftware.com wrote: i meant: mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); -igor Arh! I didn't think of that. Would the PageParameterEncoder passed into the MountedMapper be used by any BookmarkablePageLink instance when it encodes the URL or does the encoder need to be separately specified for the BookmarkablePageLink? On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: BookmarkablePageLink works differently in 1.5?
Use need to use PageParameters.set(int, Object) to add indexed parameter. I guess you pass #set(String, Object) instead. Yes, I've just been finding all the code that builds BookmarkablePageLink's using the set(String, Object) method and converting it to set(int, Object). There's quite a lot of it! ;) See #testEncodeX() methods in org.apache.wicket.request.mapper.MountedMapperTest On Wed, Sep 21, 2011 at 9:17 AM, Chris Colman chr...@stepaheadsoftware.com wrote: i meant: mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); -igor Arh! I didn't think of that. Would the PageParameterEncoder passed into the MountedMapper be used by any BookmarkablePageLink instance when it encodes the URL or does the encoder need to be separately specified for the BookmarkablePageLink? On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
RE: BookmarkablePageLink works differently in 1.5?
Some of the pages are working now but the generated HTML code sure has some interest URLs: a wicket:id=faqCategoryLink href=../../../o/76429/c/22 h2 wicket:id=faqCategoryNameGetting started/h2/a The href value has a few too many '/' slashes in it for my liking. Any idea why it might be adding so many slashes? The links work ok but look very strange. In 1.4 the links looked normal with no ../../ and / Any ideas what might be causing this? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 4:17 PM To: users@wicket.apache.org Subject: RE: BookmarkablePageLink works differently in 1.5? i meant: mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); -igor Arh! I didn't think of that. Would the PageParameterEncoder passed into the MountedMapper be used by any BookmarkablePageLink instance when it encodes the URL or does the encoder need to be separately specified for the BookmarkablePageLink? On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BookmarkablePageLink works differently in 1.5?
maybe it is because of the placeholders in the mount path. remove them and use just the API for indexed parameters to set/get them. On Wed, Sep 21, 2011 at 2:40 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Some of the pages are working now but the generated HTML code sure has some interest URLs: a wicket:id=faqCategoryLink href=../../../o/76429/c/22 h2 wicket:id=faqCategoryNameGetting started/h2/a The href value has a few too many '/' slashes in it for my liking. Any idea why it might be adding so many slashes? The links work ok but look very strange. In 1.4 the links looked normal with no ../../ and / Any ideas what might be causing this? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 4:17 PM To: users@wicket.apache.org Subject: RE: BookmarkablePageLink works differently in 1.5? i meant: mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); -igor Arh! I didn't think of that. Would the PageParameterEncoder passed into the MountedMapper be used by any BookmarkablePageLink instance when it encodes the URL or does the encoder need to be separately specified for the BookmarkablePageLink? On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h
RE: BookmarkablePageLink works differently in 1.5?
maybe it is because of the placeholders in the mount path. remove them and use just the API for indexed parameters to set/get them. By placeholders do you mean this part: /${dummy_o}/${o}/${dummy_c}/${c} in mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ? I had them there so that it 'defines' the named parameters so that all existing code that reads parameter values can continue to work unchanged. Eg., Existing code like: parameters.get(o).toString(); (this had to be changed slightly to conform to 1.5 method names) should still work which is preferable to changing all parameter reading code to indexed based parameters. I guess that by adding name/value pairs as a suffix in the mount it is actually extending the mount point to include those extra name/value pairs which is why the ../../ is being added to the link's URL. In 1.4.x we never had to 'define' these name/value pairs and so the mount point never included them. On Wed, Sep 21, 2011 at 2:40 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Some of the pages are working now but the generated HTML code sure has some interest URLs: a wicket:id=faqCategoryLink href=../../../o/76429/c/22 h2 wicket:id=faqCategoryNameGetting started/h2/a The href value has a few too many '/' slashes in it for my liking. Any idea why it might be adding so many slashes? The links work ok but look very strange. In 1.4 the links looked normal with no ../../ and / Any ideas what might be causing this? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 4:17 PM To: users@wicket.apache.org Subject: RE: BookmarkablePageLink works differently in 1.5? i meant: mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); -igor Arh! I didn't think of that. Would the PageParameterEncoder passed into the MountedMapper be used by any BookmarkablePageLink instance when it encodes the URL or does the encoder need to be separately specified for the BookmarkablePageLink? On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true
RE: BookmarkablePageLink works differently in 1.5?
That was it: the placeholders added to the mount URL pattern for parameters in the directory style eg., /${val1}/${val2} actually contribute to the mount point, effectively extending it. -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Wednesday, 21 September 2011 9:53 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? maybe it is because of the placeholders in the mount path. remove them and use just the API for indexed parameters to set/get them. On Wed, Sep 21, 2011 at 2:40 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Some of the pages are working now but the generated HTML code sure has some interest URLs: a wicket:id=faqCategoryLink href=../../../o/76429/c/22 h2 wicket:id=faqCategoryNameGetting started/h2/a The href value has a few too many '/' slashes in it for my liking. Any idea why it might be adding so many slashes? The links work ok but look very strange. In 1.4 the links looked normal with no ../../ and / Any ideas what might be causing this? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 4:17 PM To: users@wicket.apache.org Subject: RE: BookmarkablePageLink works differently in 1.5? i meant: mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); -igor Arh! I didn't think of that. Would the PageParameterEncoder passed into the MountedMapper be used by any BookmarkablePageLink instance when it encodes the URL or does the encoder need to be separately specified for the BookmarkablePageLink? On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h
RE: BookmarkablePageLink works differently in 1.5?
It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BookmarkablePageLink works differently in 1.5?
mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: BookmarkablePageLink works differently in 1.5?
The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BookmarkablePageLink works differently in 1.5?
i meant: mount(new MountedMapper(/content/home, HomePage.class, new MyCustomPageParameterEncoder()); -igor On Tue, Sep 20, 2011 at 9:12 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The pages are mounted but with 1.4 I mounted them all like: mountPage(/content/home); mountPage(/content/about); mountPage(/content/product); ... Any links to the page would suffix the parameters to the mount point like: /content/home/o/123 /content/about/o/123 /content/product/o/123/p/756 ... With 1.4 I could mount them all in a similar way and let the page itself interpret the parameters according to what it expected. I guess in 1.5 I will have to mount each page in a way that explicitly declares its particular parameter composition: mountPage(/content/home/${dummy_o}/${o}); mountPage(/content/about/${dummy_o}/${o}); mountPage(/content/product/${dummy_o}/${o}/${dummy_c}/${c}); ... I kind of arrived at that conclusion yesterday. The problem I was having today was more to do with getting BookmarkablePageLink to produce URLs with the /n/v/ style instead of the ?n=v style but I think I've almost worked that out. I have to simulate the name/value pairing of 1.4 /n/v style parameters by outputting a dummy parameter name (where the name used to be in 1.4) and the real value. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 21 September 2011 12:25 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink works differently in 1.5? mountmapper also uses pageparameters, can you not mount your pages? -igor On Tue, Sep 20, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like the parameter encoding/decoding is all done via the interface: IPageParametersEncoder Which has only a single implementation which obviously encodes/decodes the new 1.5 style. Would it be possible to provide a 1.4 legacy implementation of IPageParametersEncoder to allowing upgrading a 1.4 wicket application to 1.5 but maintain support for existing URLs that already exist for the 1.4 built web application? Could the setting of the IPageParameterEncoder implementation be an application or page setting? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 21 September 2011 11:14 AM To: users@wicket.apache.org Subject: BookmarkablePageLink works differently in 1.5? It seems that in Wicket 1.5 BookmarkablePageLink's produce URLs that employ query parameters Eg., ?name1=value1name2=value2 instead of the directory style parameters of 1.4.x Eg., /name1/value1/name2/value2 While this may not be a problem for new Wicket applications the thousands of URLs of existing 1.4 Wicket applications are referenced from many existing websites and search engines on the web. Is there a replacement for BookmarkablePageLink in 1.5 that can produce the 1.4 style URLs? (Or could BookmarkablePageLink take an option like 'legacyStyle' that, when set to true, will create legacy (1.4) style URLs?) Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org