[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1818) Patch proposed to LocaleSelector

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Jul 31 10:37:26 EDT 2008


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

Pete Muir closed JBSEAM-1818.
-----------------------------

    Resolution: Rejected


Use #{facesContext.application.defaualtLocale}

> Patch proposed to LocaleSelector
> --------------------------------
>
>                 Key: JBSEAM-1818
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-1818
>             Project: Seam
>          Issue Type: Feature Request
>          Components: Core
>    Affects Versions: 2.0.0.BETA1
>            Reporter: Marco Pancotti
>            Priority: Minor
>
> org.jboss.seam.international.LocaleSelector does not implement a getDefaultLocale method. I think it can be useful in a multi-language application. So I propose to apply the following patch in the LocaleSelector class adding the following methods (it can be more complex if you want orthogonal returns respect the return of the specified locale):
> public Locale getDefaultLocale(){
>   return FacesContext.getCurrentInstance().getApplication().getDefaultLocale() ;
> }
> public String getDefaultLocaleLanguage(){
>   return FacesContext.getCurrentInstance().getApplication().getDefaultLocale() .getLanguage();
> }
> Marco Pancotti

-- 
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