Resource identifiers
In JSF 2.0, a resource is an image, document, or some other digital asset. They are placed under the resources
folder at the web context folder. In a Gradle or Maven project, a particular resource lives on the path, as shown:
src/main/webapp/resources/<RESOURCE-IDENTIFIER>
A resource may also be stored in a JAR file under the WEB-INF/lib
folder:
src/main/webapp/WEB-INF/lib/<SOME>.jar
If the resource is stored in a JAR file, it must be located in the META-INF
folder such that it can be located with the path:
META-INF/resources/<RESOURCE-IDENTIFIER>
RESOURCE-IDENTIFIER
can be further divided into separate paths. The widest case supports full internalization. The constituent parts are as follows:
<RESOURCE-IDENTIFIER> := [ <LOCALE-PREFIX> / ] [ <LIBRARY-NAME> / ] [ <LIBRARY-VERSION> / ] <RESOURCE-NAME> [ / <RESOURCE-VERSION> ]
The subterms allow the resource identifiers to be easily identified and separated out.
The...