For example:
<h:outputScript library="js" name="foo.js" />
becomes:
<script type="text/javascript"
src="/helloworld/javax.faces.resource/foo.js.jsf?ln=js"></script>
Note the .jsf?ln=js
part.
Why is that?
For example:
<h:outputScript library="js" name="foo.js" />
becomes:
<script type="text/javascript"
src="/helloworld/javax.faces.resource/foo.js.jsf?ln=js"></script>
Note the .jsf?ln=js
part.
Why is that?
I think .jsf causes jsf servlet to take control on how which resource to download and hence allows library versioning.
See: What is the JSF resource library for and how should it be used?