Re: localization and session expiration

2009-03-06 Thread ElSe
n this context override >> > WebApplication.newSession: >> > >> > @Override >> > public Session newSession( Request request, Response response ) { >> >return new WebSession( request ) { >> >@Override >> >

Re: localization and session expiration

2009-03-06 Thread Anton Veretennikov
If cookie is already set, get it and use, if no then set it as browser's getLocale() and save to cookie. To get cookies: Cookie[] cookies = ((WebRequest)getRequestCycle().getRequest()).getCookies(); if (cookies!=null) { for (int i = 0; i < cookies.length; i++) { Cookie cookie =

Re: localization and session expiration

2009-03-06 Thread Jonas
No need to use spring for that, the locale of a WebSession is initialized from ServletRequest#getLocale() by default, which is based on the Accept-Language header. On Fri, Mar 6, 2009 at 12:57 PM, Leszek Gawron wrote: > Anton Veretennikov wrote: >> >> May be cookie? > > You can also try to extrac

Re: localization and session expiration

2009-03-06 Thread Leszek Gawron
Anton Veretennikov wrote: May be cookie? You can also try to extract the locale used by user in the browser from request header: http://www.acegisecurity.org/guide/springsecurity.html#concurrent-sessions GET /guide/springsecurity.html HTTP/1.1 Host: www.acegisecurity.org User-Agent: Mozill

Re: localization and session expiration

2009-03-05 Thread Anton Veretennikov
d locale parameter to every url but it is so ugly... > > Best regards, > Elena. > -- > View this message in context: > http://www.nabble.com/localization-and-session-expiration-tp22366384p22366384.html > Sen

localization and session expiration

2009-03-05 Thread ElSe
http://www.nabble.com/localization-and-session-expiration-tp22366384p22366384.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e