You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Roman Uhlig Maxity.de" <ro...@maxity.de> on 2009/08/03 15:22:29 UTC
Mounting application homepage
We currently do a multilanguage site with Wicket and ran across the
following problem: To be able to encode the chosen language in the URL,
we append it to every URL like
www.site.com/sitemap/fr
www.site.com/sitemap/en
(www.site.com/sitemap would mean default language)
This works fine with MixedParamUrlCodingStrategy (in our case) unless
you want to do this with the main index page like
www.site.com/en
because it seems it's not possible to mount the index page like
mount(new MixedParamUrlCodingStrategy("/", Index.class, new String[]{
"language" }));
or
mount(new MixedParamUrlCodingStrategy("", Index.class, new String[]{
"language" }));
Would be interesting to hear if anyone was able to achieve this since
it's a quite common use case I think.
Thanks in advance,
Roman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Mounting application homepage
Posted by Roman Uhlig <ro...@knve.de>.
Thanks, that is even more than I needed and will solve other issues I have
with Wicket and requests/URLs.
And yes, I'm eagerly awaiting some first 1.5 beta download. ;)
Regards,
Roman
Erik van Oosten wrote:
>
> Please see this thread.
> http://www.nabble.com/How-to-catch-unknown-(not-mounted)-URLs--td14949092.html#a14949092
>
> I am not sure, but I think there are more answers out there. Or, ... you
> could wait for Wicket 1.5 :)
>
> Regards,
> Erik.
>
>
> Roman Uhlig Maxity.de wrote:
>> We currently do a multilanguage site with Wicket and ran across the
>> following problem: To be able to encode the chosen language in the URL,
>> we append it to every URL like
>>
>> www.site.com/sitemap/fr
>> www.site.com/sitemap/en
>> (www.site.com/sitemap would mean default language)
>>
>> This works fine with MixedParamUrlCodingStrategy (in our case) unless
>> you want to do this with the main index page like
>>
>> www.site.com/en
>>
>> because it seems it's not possible to mount the index page like
>>
>> mount(new MixedParamUrlCodingStrategy("/", Index.class, new String[]{
>> "language" }));
>> or
>> mount(new MixedParamUrlCodingStrategy("", Index.class, new String[]{
>> "language" }));
>>
>>
>> Would be interesting to hear if anyone was able to achieve this since
>> it's a quite common use case I think.
>>
>> Thanks in advance,
>> Roman
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> --
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Mounting-application-homepage-tp24790738p24791633.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Mounting application homepage
Posted by Erik van Oosten <e....@grons.nl>.
Please see this thread.
http://www.nabble.com/How-to-catch-unknown-(not-mounted)-URLs--td14949092.html#a14949092
I am not sure, but I think there are more answers out there. Or, ... you
could wait for Wicket 1.5 :)
Regards,
Erik.
Roman Uhlig Maxity.de wrote:
> We currently do a multilanguage site with Wicket and ran across the
> following problem: To be able to encode the chosen language in the URL,
> we append it to every URL like
>
> www.site.com/sitemap/fr
> www.site.com/sitemap/en
> (www.site.com/sitemap would mean default language)
>
> This works fine with MixedParamUrlCodingStrategy (in our case) unless
> you want to do this with the main index page like
>
> www.site.com/en
>
> because it seems it's not possible to mount the index page like
>
> mount(new MixedParamUrlCodingStrategy("/", Index.class, new String[]{
> "language" }));
> or
> mount(new MixedParamUrlCodingStrategy("", Index.class, new String[]{
> "language" }));
>
>
> Would be interesting to hear if anyone was able to achieve this since
> it's a quite common use case I think.
>
> Thanks in advance,
> Roman
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org