Change a session locale using a GET parameter

2013-11-25 Thread Marcin Zajączkowski
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

Re: Change a session locale using a GET parameter

2013-11-25 Thread Martin Grigorov
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

Re: Change a session locale using a GET parameter

2013-11-25 Thread Marcin Zajączkowski
On 2013-11-25 17:45, Martin Grigorov wrote: 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. Great, thanks Martin. Marcin On