Re: I18N for bookmarkable urls

2011-10-11 Thread Daniele Dellafiore
Ah, I also tried to llok at MountedMapper that has a protected newPageParameters() trying to add there a new parameter with locale but that didn't worked, I couldn't see any moment when the method is actually called while the application is running On Tue, Oct 11, 2011 at 11:34 AM, Daniele Dellafi

Re: I18N for bookmarkable urls

2011-10-11 Thread Daniele Dellafiore
Yes the solution could work but is no more applicable to Wicket 1.5 since it now uses Mapper instead of old fashioned Url Coding Strategies. I've tried to hack around but I've found no point where to add a default parameter to all the web pages that's the Locale. Also, the BookmarkableLink, for ex

Re: I18N for bookmarkable urls

2009-10-26 Thread Ilja Pavkovic
Hi, a better solution (in my eyes.. :)) is something like: import java.util.Locale; import org.apache.wicket.IRequestTarget; import org.apache.wicket.Page; import org.apache.wicket.Session; import org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy; public c

Re: I18N for bookmarkable urls

2009-10-26 Thread Bernhard Grünewaldt
Hello, After thinking a bit I came up with a solution (which many of you might call "dirty workaround"). But since no one else came up with a solution I will stick to it until something better will be provided. The solution can be found here: http://blog.gruenewaldt.net/en/programming/java/ap

Re: I18N for bookmarkable urls

2009-10-24 Thread Bernhard Grünewaldt
Hi folks, Since my app will be english and german aswell, that is something I need too. I tried to mount and unmount my pages when the locale changes from german to english or vice versa. I tried using ResourceModel Strings for the urls, but it's not working the way I want it to be. And it wou

I18N for bookmarkable urls

2009-10-22 Thread Ilja Pavkovic
Hi, as we need some SEO optimization I want to provide the following bookmarkable pages: http://xxx/impressum http://xxx/imprint the native approach would be somethink like: mountBookmarkablePage("imprint", ImprintPage.class); mountBookmarkablePage("impressum", ImprintPage.class); This looks