[
https://jira.jboss.org/jira/browse/JBIDE-5435?page=com.atlassian.jira.plu...
]
Denis Golovin updated JBIDE-5435:
---------------------------------
Summary: JSF Resource identifier validator (was: Resource identifier validator
for JSF 2.0)
Description:
Validator should check:
1. resource references in pages: xhtml, jsp, jspxand etc.
2. resource names defined in current project or related projects
3. resource names defined in jars
It should perform verification for JSF2 resources as it is defined in spec's
"2.6.1.3 Resource Identifiers" chapter: "<resourceIdentifier>
consists of several segments, specified as follows.
[localePrefix/][libraryName/][libraryVersion/]resourceName[/resourceVersion]
The run-time must enforce the following rules to consider a <resourceIdentifier>s
valid. A <resourceIdentifier> that does not follow these rules must not be
considered valid and must be ignored silently.
* Every character in a resource identifier must be a valid character suitable for use in a
string passed to the constructor of java.io.File that takes a single String argument.
* Segments in square brackets [] are optional.
* The segments must appear in the order shown above.
* If libraryVersion is present, it must be preceded by libraryName.
* If libraryVersion is present, any leaf files under libraryName must be ignored.
* If resourceVersion is present, it must be preceded by resourceName.
* There must be a '/' between adjacent segments in a <resourceIdentifier>
* If libraryVersion or resourceVersion are present, both must be a '_' separated
list of integers, neither starting nor ending with '_'
* If resourceVersion is present, it must be a version number in the same format as
libraryVersion. An optional "file extension" may be used with the
resourceVersion. If "file extension" is used, a "." character,
followed by a "file extension" must be appended to the version number. See the
following table for an example."
was:
This validator should perform verification for JSF2 resources as it is defined in
spec's "2.6.1.3 Resource Identifiers" chapter:
"<resourceIdentifier> consists of several segments, specified as follows.
[localePrefix/][libraryName/][libraryVersion/]resourceName[/resourceVersion]
The run-time must enforce the following rules to consider a <resourceIdentifier>s
valid. A <resourceIdentifier> that does not follow these rules must not be
considered valid and must be ignored silently.
* Every character in a resource identifier must be a valid character suitable for use in a
string passed to the constructor of java.io.File that takes a single String argument.
* Segments in square brackets [] are optional.
* The segments must appear in the order shown above.
* If libraryVersion is present, it must be preceded by libraryName.
* If libraryVersion is present, any leaf files under libraryName must be ignored.
* If resourceVersion is present, it must be preceded by resourceName.
* There must be a '/' between adjacent segments in a <resourceIdentifier>
* If libraryVersion or resourceVersion are present, both must be a '_' separated
list of integers, neither starting nor ending with '_'
* If resourceVersion is present, it must be a version number in the same format as
libraryVersion. An optional "file extension" may be used with the
resourceVersion. If "file extension" is used, a "." character,
followed by a "file extension" must be appended to the version number. See the
following table for an example."
Affects: [Documentation (Ref Guide, User Guide, etc.)]
JSF Resource identifier validator
---------------------------------
Key: JBIDE-5435
URL:
https://jira.jboss.org/jira/browse/JBIDE-5435
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: JSF
Reporter: Denis Golovin
Assignee: Denis Golovin
Fix For: 3.2.next
Validator should check:
1. resource references in pages: xhtml, jsp, jspxand etc.
2. resource names defined in current project or related projects
3. resource names defined in jars
It should perform verification for JSF2 resources as it is defined in spec's
"2.6.1.3 Resource Identifiers" chapter: "<resourceIdentifier>
consists of several segments, specified as follows.
[localePrefix/][libraryName/][libraryVersion/]resourceName[/resourceVersion]
The run-time must enforce the following rules to consider a <resourceIdentifier>s
valid. A <resourceIdentifier> that does not follow these rules must not be
considered valid and must be ignored silently.
* Every character in a resource identifier must be a valid character suitable for use in
a string passed to the constructor of java.io.File that takes a single String argument.
* Segments in square brackets [] are optional.
* The segments must appear in the order shown above.
* If libraryVersion is present, it must be preceded by libraryName.
* If libraryVersion is present, any leaf files under libraryName must be ignored.
* If resourceVersion is present, it must be preceded by resourceName.
* There must be a '/' between adjacent segments in a <resourceIdentifier>
* If libraryVersion or resourceVersion are present, both must be a '_' separated
list of integers, neither starting nor ending with '_'
* If resourceVersion is present, it must be a version number in the same format as
libraryVersion. An optional "file extension" may be used with the
resourceVersion. If "file extension" is used, a "." character,
followed by a "file extension" must be appended to the version number. See the
following table for an example."
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira