You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by divad91 <di...@hotmail.com> on 2013/01/15 21:45:23 UTC
Wicket localized path - mountpath
Hi,
I am currently using wicket 1.4.21 with wicket-stuff annotation to mount my
pages.
I want to have localized url (french and english url for a same page).
To do so, i used the "@MountPath" annotation using the default and alternate
path.
Default path is french and the alternative is english.
Ex:
@MountPath(path = "/commencer", alt = "/start")
@MountMixedParam(parameterNames = { "lang", "#postalCode" })
public class HomePage extends AppBasePage {
The problem I have is that when I start the application in french, all my
other page will be render with the default path witch is ok. But if i change
language, my current page will use the alternate mount path (english) but
when i will change page, it will render again with the default mount path
(french).
So my question is, is there a way to force a page to use it's alternative
path base on Locale for example ?
if (isEnglishUrl(getRequest().getPath()))
// Use page alternative path (english)
else
// Use page default path (french)
Thanks for help
David
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-localized-path-mountpath-tp4655408.html
Sent from the Users forum 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