[jbosstools-issues] [JBoss JIRA] (JBIDE-5435) JSF Resource identifier validator

Denis Golovin (JIRA) jira-events at lists.jboss.org
Fri Aug 31 03:07:43 EDT 2012


     [ https://issues.jboss.org/browse/JBIDE-5435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Golovin updated JBIDE-5435:
---------------------------------

    Fix Version/s: 4.0.0.Alpha2
                       (was: 4.0.0.Alpha1)


moved to 4.0.0.Alpha2
                
> JSF Resource identifier validator
> ---------------------------------
>
>                 Key: JBIDE-5435
>                 URL: https://issues.jboss.org/browse/JBIDE-5435
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: JSF
>            Reporter: Denis Golovin
>            Assignee: Denis Golovin
>              Labels: jsf2, new_and_noteworthy
>             Fix For: 4.0.0.Alpha2
>
>
> 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, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list