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

Shervin Asgari (JIRA) jira-events at lists.jboss.org
Tue Nov 10 08:56:05 EST 2009

    [ https://jira.jboss.org/jira/browse/JBSEAM-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12493965#action_12493965 ] 

Shervin Asgari commented on JBSEAM-4248:

+1 on getting this fixed.
See also http://www.seamframework.org/Community/HowToGetMessageFromResourceBundleInWebRemote

> 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