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

Marco Pancotti (JIRA) jira-events at lists.jboss.org
Sat Aug 18 18:38:02 EDT 2007


Patch proposed to LocaleSelector
--------------------------------

                 Key: JBSEAM-1818
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1818
             Project: JBoss 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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list