javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-1141

Specify that all parts of a resource identifier must not have "/".

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1
    • Fix Version/s: 2.2 Sprint 14
    • Component/s: Resources
    • Labels:
      None

      Description

      A test for JAVASERVERFACES-2401 asserts that the following is valid:

      resourceHandler.createResource("css/images/background.png")

      This is not valid and should never have been valid.

      JSF 2.2 does add a new method resourceHandler.createViewResource() but that is intended to resolve facelet files, and those may have slashes in the path name.

        Issue Links

          Activity

          Hide
          Ed Burns added a comment -

          Re-opening per Leonardo Uribe's 20121103-1254 email.

          Show
          Ed Burns added a comment - Re-opening per Leonardo Uribe's 20121103-1254 email.
          Hide
          Ed Burns added a comment -

          Consider this EG email text from < http://java.net/projects/javaserverfaces-spec-public/lists/jsr344-experts/archive/2012-11/message/10 >.

          Leonardo, do you think it is sufficient to modify the javadoc for just
          ResourceHandler.createResource(String) to say that if the argument
          contains more than one slash, the text between the beginning of the
          string and that first slash must be taken as the libraryName, and the
          remainder must be used to find the resourceName?

          Show
          Ed Burns added a comment - Consider this EG email text from < http://java.net/projects/javaserverfaces-spec-public/lists/jsr344-experts/archive/2012-11/message/10 >. Leonardo, do you think it is sufficient to modify the javadoc for just ResourceHandler.createResource(String) to say that if the argument contains more than one slash, the text between the beginning of the string and that first slash must be taken as the libraryName, and the remainder must be used to find the resourceName?

            People

            • Assignee:
              Ed Burns
              Reporter:
              Ed Burns
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 50 minutes
                50m
                Remaining:
                Time Spent - 40 minutes Remaining Estimate - 10 minutes
                10m
                Logged:
                Time Spent - 40 minutes Remaining Estimate - 10 minutes
                40m