Details

    • 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:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      548
    • Status Whiteboard:
      Hide

      cat2 frame size_medium importance_large

      Show
      cat2 frame size_medium importance_large

      Description

      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.

        Activity

        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 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: