[ 
https://issues.apache.org/struts/browse/SHALE-437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40850
 ] 

Torsten Krah commented on SHALE-437:
------------------------------------

Verified.
I also did an "output" to the view, which value the ViewRoot got and 
which value the EL expression has:

The UIViewRoot Locale stays always the same, although the

<h:outputText value="#{myLocaleSessionBean.myLocale}" /> changes 
everytime i click on my "en" and "de" link which invokes a method which 
sets the actualLocale to german or english.

faces-config.xml:

                <locale-config>
                        <default-locale>de</default-locale>
                        <supported-locale>en</supported-locale>
                        <supported-locale>de</supported-locale>
                        <supported-locale>de_DE</supported-locale>
                        <supported-locale>en_GB</supported-locale>
                        <supported-locale>en_US</supported-locale>
                </locale-config>

Bean:

private Locale myLocale;
  public Locale getMyLocale() {
    return this.myLocale;
  }
  // setter there too

  public void langEN() {
    this.myLocale = Locale.ENGLISH;
  }
  public void langDE() {
    this.myLocale = Locale.GERMAN;
  }


Should be correct - but does not work.

Torsten

> Setting Locale on ViewRoot to an EL Expression is broken
> --------------------------------------------------------
>
>                 Key: SHALE-437
>                 URL: https://issues.apache.org/struts/browse/SHALE-437
>             Project: Shale
>          Issue Type: Bug
>          Components: Clay
>    Affects Versions: 1.0.4, 1.1.0-SNAPSHOT
>         Environment: JDK 1.[56], Tomcat [56]
>            Reporter: Torsten Krah
>
> The improvement is is resolved there 
> https://issues.apache.org/struts/browse/SHALE-331.
> Cant modify it to reopen it as a "bug" - so i open a new one.
> Like i told on the list, the locale binding is broken for EL expressions.
> Looking at the code i saw the binding expression is set to the ShaleViewRoot.
> But i can change the result of the expression to another locale - the locale 
> of the ViewRoot still says the same.
> Torsten

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