[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-4248) Messages component gets wrong locale in when called with seam remoting (@WebRemote)

David Jensen (JIRA) jira-events at lists.jboss.org
Tue Jun 16 09:24:56 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBSEAM-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jensen updated JBSEAM-4248:
---------------------------------

    Attachment: myproject.zip


A clean Seam 2.1.2.GA project with example code. To see the problem you need to set your browsers locale to something else than English (or change default and supported locales to something else +  move the translation of 'foobar')

> Messages component gets wrong locale in when called with seam remoting (@WebRemote)
> -----------------------------------------------------------------------------------
>
>                 Key: JBSEAM-4248
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4248
>             Project: Seam
>          Issue Type: Bug
>          Components: Remoting
>    Affects Versions: 2.1.2.GA
>         Environment: Seam 2.1.2.GA, JBoss EAP 4.3
>            Reporter: David Jensen
>            Assignee: Shane Bryzak
>         Attachments: myproject.zip
>
>
> The wrong locale gets set when using the 'Messages' component in a @WebRemote method called from javascript. Regardless of supported and default locales in faces-config.xml whatever the browser requests is used.  
> I'll attach a clean project with code example. Basically I hunted it down to org.jboss.seam.international.LocaleSelector.getLocale() where we get the locale from the HttpRequest since no FacesContext exists.
> It would seem you can only have supported and default locales in a ordinary JSF request, It would be nice if Seam could keep of track that for you instead of JSF, or have I misunderstood something?
> Thanks!
> /David 

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

        



More information about the seam-issues mailing list