JS References to JAR file?
In the Pet Store 2.0 BluePrints application, the banner.jsp web page uses references like the following uri:
${pageContext.request.contextPath}/faces/static/META-INF/dojo/bpcatalog/dojo.js
I see that the "META-INF/dojo/bpcatalog/dojo.js" file is located in the bp-ui-5.jar file, but I don't see how the application associates the "static" part of the URI with the jar.
Any help would be appreciated!
Thanks in advance
[450 byte] By [
jaredpa] at [2007-11-26 19:12:16]

# 1
This line is mimicking the output of the JSF renderer code of something like:-
//Shale-Remoting resource retrieval
helper.linkJavascript(context, component, writer,
Mechanism.CLASS_RESOURCE,
"/META-INF/dojo/bpcatalog/dojo.js");
Then, in short, shale remoting automatically finds the appropriate
resource when it sees "static" (and "dynamic" for another case).
For detailed description, please take a look at:-
http://java.sun.com/developer/technicalArticles/J2EE/jsf_resources/
yutaa at 2007-7-9 21:10:40 >
