3 Replies Latest reply on Apr 7, 2006 10:55 AM by Dan Liu

    locale is not supported?

    Dan Liu Apprentice

      I don't know whether this is a myfaces or facelets problem. Since I can't find a solution anywher, I have to try to post it here.

      I have this in my faces-config.xml:

       <application>
       <message-bundle>resources.application</message-bundle>
       <locale-config>
       <default-locale>en_GB</default-locale>
       <supported-locale>en_US</supported-locale>
       </locale-config>
       </application>
      


      and my jsf code is like:
      <h:commandButton value="#{bundle.mytext}" />
      


      No matter how I change the default-locale, mytext is always showing the words from application_en_US.properties file.

      Also using <f:view locale="..."> wouldn't make any different.

      Has anyone experienced this problem?