13 Replies Latest reply on Dec 29, 2009 7:56 AM by Frank Cornelis

    Seam Locale issues

    guy bashan Apprentice

      Hi,


      I am trying to work with Seam and Locales, but having several issues.
      These are my configurations:
      faces.config.xml:


        <application>
          <locale-config>
            <default-locale>iw</default-locale>
            <supported-locale>iw</supported-locale>
            <supported-locale>en</supported-locale>
          </locale-config>
          <message-bundle>com.bundle.messages</message-bundle>
          <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
        </application>



      components.xml:


        <international:locale-config default-locale="iw">
          <international:supported-locales>
            <value>en</value>
            <value>iw</value>
          </international:supported-locales>
        </international:locale-config>
      
        <core:resource-loader>
          <core:bundle-names>
            <value>com.bundle.messages</value>
          </core:bundle-names>
        </core:resource-loader>
      
        <core:locale-selector cookie-enabled="true" locale="iw"/>



      My issues:
      1) When application loads, the default Locale is English and not Hebrew (iw). Switching between the Locales (by changing LocaleSelector.instance().setLocale() is working fine).
      2) When I am sending mail using Seam mail, the mail is being sent in Hebrew (iw). Switching between Locales has no effect. It is always being sent in Hebrew (iw).
      3) Switching between Locales is not stored in the browser cookie. When I switch to Hebrew Locale, then reload the web application, it loads up with English again.


      Any ideas?