On Sun, Jun 10, 2012 at 7:32 PM, oliver.stef <[email protected]> wrote:
> Hi Martin,
>
> Thank you for your fast replay!
>
> What do you mean by saying: " ...parse it and set it in the session. "
> How to do it?
The cookie value will be a String like "en" or "en_US" or "en_US_variation".
Create a Locale object with:
new Locale("en")
new Locale("en", "US")
new Locale("en", "US", "variation")
and then do: Session.get().setLocale(locale)
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/set-locale-in-cookie-tp4649827p4649829.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]