[ 
https://issues.apache.org/jira/browse/WICKET-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464551
 ] 

Eelco Hillenius commented on WICKET-151:
----------------------------------------

erm. not Application#newSession(Request), but 
WebApplication#newSession(Request) already existed

> set session locale when constructing session object
> ---------------------------------------------------
>
>                 Key: WICKET-151
>                 URL: https://issues.apache.org/jira/browse/WICKET-151
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3, 2.0
>            Reporter: Eelco Hillenius
>         Assigned To: Eelco Hillenius
>             Fix For: 1.3, 2.0
>
>
> Currently, we create the session objects like this:
> WebApplication#getSession:
> if (session == null)
> {
>       // Create session using session factory
>       session = getSessionFactory().newSession(request);
>       // Set the client Locale for this session
>       session.setLocale(request.getLocale());
> What I propose is to change the constructor from Session/ WebSession to take 
> in a Locale parameter as well. That would make it possible for custom session 
> classes to fix the locale by setting it in the constructor. Now that is only 
> possible by overriding Session#getLocale

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to