Hi,

See
https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/LocaleFirstMapper.java?source=cc

You can read the parameter from the query string.


On Mon, Nov 25, 2013 at 6:31 PM, Marcin Zajączkowski <msz...@wp.pl> wrote:

> Hi,
>
> In the application an user should be able to change session locale with
> a GET parameter (e.g. ?locale=pl). I implemented it in onConfigure for
> my abstract WebPage where I check if the parameter exists and change
> session locale and it works fine.
>
> Nevertheless I wonder if it is a proper place for that action? Or maybe
> I can tell Wicket to automatically use locale from every Request (not
> only once when a session is created)?
>
> Marcin
>
> --
> http://blog.solidsoft.info/ - Working code is not enough
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to