So when you do this:
mount(new WhateverUrlCodingStrategy("/mypage", MyPage.class, Locale.NL));
then when i hit
/mypage
we have to set the sessions locale to NL then?
johan
On Mon, Apr 14, 2008 at 12:40 PM, Sebastiaan van Erk <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I have localized my Wicket site, but I have a problem with localization +
> (mounted) bookmarkable pages.
>
> When mounting a bookmarkable page:
>
> mount(new WhateverUrlCodingStrategy("/mypage", MyPage.class));
>
> there is no locale parameter...
>
> This means:
>
> 1) I cannot give my stateless pages of different locales different URLs,
> which means that nobody can link directly to a non-default locale version of
> the page.
>
> 2) My stateless pages are impossible to index in different locales. Google
> either finds only the default locale pages, or must follow a stateful
> "change locale" link, which will cause it to index pages which will be
> expired by the time they're in Google's search results.
>
> I know that I can make my own workaround, i.e., write my own url coding
> strategy with the locale in the root, /en/mypage to the english version,
> /mypage to the default locale, etc.. Or I could use
> IndexedParameterCodingStrategy to make the first parameter the locale
> (although this does not work if I want to use another coding strategy).
>
> However they're still workarounds for something that I think is
> conceptually not quite right in Wicket currently: the fact that it should be
> possible to mount different locales of a page on different urls, for
> *whatever* coding strategy I choose to use.
>
> Any ideas on this? Anybody already implemented the coding strategy for the
> locale in the root? Anybody got another easier workaround?
>
> Regards,
> Sebastiaan
>
>