Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-65

The JS e.getFacesMessage method does not work when trinidad was compiled with Java 6 (JSLocaleElementsGenerator does not work with Java6)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-incubating-plugins, 1.0.0-incubating-core, 1.0.1-plugins
    • 1.0.9-core, 1.2.12-core
    • Build
    • None
    • Windows XP, Java 6

    Description

      If trinidad was compiled with Java 6, you get the JS error "e.getFacesMessage is no Function".

      The reason for this problem is, that the JSLocaleElementsGenerator of the maven-i18n-plugin does not work with Java 6.

      The JSLocaleElementsGenerator uses some java resource bundles to generate the LocaleElements files. These resource bundles are part of the rt.jar file until java 5. With java 6 these bundles doesn't exist anymore, are hard coded and can be accessed through sun.util.resources.LocaleData (not on the public API).

      Attachments

        1. JSLocaleElementsGenerator.patch
          3 kB
          David Übelacker
        2. LocaleDataResolver.java
          6 kB
          David Übelacker

        Activity

          People

            matzew Matthias Wessendorf
            goodfield David Übelacker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: