Open eclipse-faces-bot opened 9 years ago
@glassfishrobot Commented Reported by @edburns
@glassfishrobot Commented arendvr.com said: If resourceName may contain path separators, could that not create ambiguity with libraryVersion or resourceVersion?
For example the resourceIdentifier "libName/1_0/resName/2_0" might mean
libraryName=libName, libraryVersion=1_0, resourceName=resName, resourceVersion=2_0
or
libraryName=libName, libraryVersion=
libraryName is restricted to prevent ambiguity with libraryVersion (JSF 2.2 Spec, page 78). Maybe resourceName should have a similar restriction?
Or maybe this ambiguity is already dealt with elsewhere? For instance I didn't read through the whole algorithm in 2.6.1.4.
@glassfishrobot Commented arendvr.com said: Other possible problems:
@glassfishrobot Commented arendvr.com said: Not addressed by JSF 2.3 Early Draft Review.
@glassfishrobot Commented arendvr.com said: See other discussions: https://community.oracle.com/thread/3682349 https://java.net/projects/javaserverfaces-spec-public/lists/users/archive/2017-01/message/117
Also in my opinion this is not about supporting "historical reasons" as stated in the Javadoc of ResourceHandler.createResource() . Multiple levels of path separators are useful when organizing many resources. They are used for example by Webjars and Primefaces:
@glassfishrobot Commented Issue-Links: is related to JAVASERVERFACES_SPEC_PUBLIC-1141
@glassfishrobot Commented This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1366
Hi, any chances to see the implementation of the conclusion? It's been over 9 years ;).
whats your exact problem?
IMO the spec is fine here as this is valid:
<h:outputScript library="primefaces" name="jquery/jquery.js" />
this not:
<h:outputScript library="primefaces/jquery" name="jquery.js" />
Sorry for the late answer. But this, unfortunately, is not valid:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:productForm="http://xmlns.jcp.org/jsf/composite/cforms/myproductsubfolder"
xmlns:userForm="http://xmlns.jcp.org/jsf/composite/cforms/myusersubfolder"
template="/WEB-INF/template.xhtml">
The expert group discussion for #1141 concluded that resourceName should be allowed to contain path separators.
An insufficient response to this conclusion was the following change to ResourceHandler.createResource()
The following additional spec actions must be taken.
1. Fix the wording of the text of createResource() to be:
2. In section 2.6.1.3 modify the sentence starting with "The set of characters..." to be: