n this context override
>> > WebApplication.newSession:
>> >
>> > @Override
>> > public Session newSession( Request request, Response response ) {
>> >return new WebSession( request ) {
>> >@Override
>> >
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 =
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
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
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
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