Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-5086

localization settings via component.xml doesn't work

    Details

    • Steps to Reproduce:
      Hide

      1. You can alter booking example to use more messages bundles.
      2. Create copy of messages.properties named e.g messages_cs.properties
      3. Rename original messages.properties to messages_en.properties
      4. Add mentioned snippet to components.xml
      5. Build app and deploy (don't forget to check you browser language settings, I used FF)

      Show
      1. You can alter booking example to use more messages bundles. 2. Create copy of messages.properties named e.g messages_cs.properties 3. Rename original messages.properties to messages_en.properties 4. Add mentioned snippet to components.xml 5. Build app and deploy (don't forget to check you browser language settings, I used FF)
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Add com.sun.faces.config.ConfigureListener to web.xml before org.jboss.seam.servlet.SeamListener. You can see https://issues.jboss.org/browse/JBSEAM-4401

      Show
      Add com.sun.faces.config.ConfigureListener to web.xml before org.jboss.seam.servlet.SeamListener. You can see https://issues.jboss.org/browse/JBSEAM-4401

      Description

      Adding following snippet to components.xml does not work as expected:

      <inter:locale-config default-locale="cs" supported-locales="en cs"/>

      And it produces following message in server log after application deployment:

      "SEVERE [javax.faces] (MSC service thread 1-2) Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup."

      If you check class org.jboss.seam.international.LocaleConfig.java and its initLocaleConfig() method, then you'll notice that application variable resolves always to null in this case, therefore the locales are never set correctly.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manaRH Marek Novotny
                Reporter:
                tremes Tomas Remes
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: