• Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.2 Sprint 11 B
    • Component/s: Resources
    • Labels:
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
    • Status Whiteboard:

      cat2 frame size_medium importance_large

      cat2 frame size_medium importance_large


      Consider this situation, which is not uncommon.

      • I need a JavaScript library for all locales
      • I need images that vary by locale
        Resource handling, as described in section 2.6, makes it impossible to vary the
        images by locale without also unnecessary duplicating the JavaScript.

      In order to have images vary by locale, it is necessary to add keys
      javax.faces.resource.localePrefix into the the application's message bundle for
      each locale. Once that has been done, the prefix is used for ALL resource lookups.

      1) It forces unnecessary duplication of resources. (I now have to put the SAME
      JavaScript libraries under the locale prefix for each locale)
      2) The spec is not clear what happens when a resource is obtained from a
      component library. If the locale prefix is also prepended in that case, it is
      possible (even likely) that the library will break.

      Suggested fix: Abolish the javax.faces.resource.localePrefix approach. Instead,
      get the actual application locale, and look for resources at
      language_country_variant, language_country, language, and no prefix, just like a
      ResourceBundle does.


        cayhorstmann created issue -
        kenaiadmin made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 548 20153
        Ed Burns made changes -
        Parent JAVASERVERFACES_SPEC_PUBLIC-947 [ 99518 ]
        Issue Type Bug [ 1 ] Sub-task [ 5 ]
        Ed Burns made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2 Sprint 11 B [ 15573 ]
        Fix Version/s 2.2 [ 10403 ]
        Resolution Fixed [ 1 ]
        Manfred Riem made changes -
        Status Resolved [ 5 ] Closed [ 6 ]


          • Assignee:
            Ed Burns
          • Votes:
            3 Vote for this issue
            4 Start watching this issue


            • Created: