1 Reply Latest reply on Mar 10, 2008 12:21 PM by fabmars

    Dynamic Language Change

    toedter_k

      How can I dynamically change the language of my application? I am using RichFaces (+Sun JSF 1.2) & Facelets. Just setting the locale correctly and invoking FacesContext.getCurrentInstance().getViewRoot().setLocale(locale) does not work. I have tried <f:loadBundle>, <a4j:loadBunlde> in the xhtm files and <resource-bundle> in the faces-config, like

      <application>
       <resource-bundle>
       <base-name>messages</base-name>
       <var>bundle</var>
       </resource-bundle>
       <locale-config>
       <default-locale>de</default-locale>
       <supported-locale>de</supported-locale>
       <supported-locale>en</supported-locale>
       </locale-config>
       </application>
      
      



      Thanks

      Kai