-----Original Message-----
From: Luka Surija (JIRA) [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 18, 2007 7:28 PM
To: [email protected]
Subject: [Retrieved][jira] Created: (TRINIDAD-637) MenuModel is looking at the 
wrong locale

MenuModel is looking at the wrong locale
----------------------------------------

                 Key: TRINIDAD-637
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-637
             Project: MyFaces Trinidad
          Issue Type: Bug
            Reporter: Luka Surija
            Priority: Blocker


Currently MenuModel locale is the same as requestLocale, but should be same as 
ViewRoot Locale:

Locale requestLocale =
> facesContext.getExternalContext().getRequestLocale();   <== this one should 
> not be here
>
> // Make sure it is not null
> if (requestLocale == null)
> {
> requestLocale = facesContext.getViewRoot().getLocale();
> if (requestLocale == null)
> {
> requestLocale = facesContext.getApplication().getDefaultLocale();
> }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Reply via email to