Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3725

JSF 2.2: Custom webapp resources dir with javax.faces.WEBAPP_RESOURCES_DIRECTORY

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0-beta
    • JSR-344
    • None

    Description

      The JSF 2.2 adds the new context parameter javax.faces.WEBAPP_RESOURCES_DIRECTORY to specify a custom resources directory that is used instead of /resources.

      The strange thing in the spec is, that the JavaDoc for ResourceHandler.WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME defines, that the specified value must not start with a '/'. This is also pointed out in JAVASERVERFACES_SPEC_PUBLIC-996 (see [1]) but unfortunately not answered. Even stranger as setting this parameter in a web app with Mojarra only works if it starts with '/'.

      [1]: https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-996

      Attachments

        1. MYFACES-3725.patch
          5 kB
          Michael Kurz

        Activity

          People

            Unassigned Unassigned
            dr.gonzo Michael Kurz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: