2

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?

user3280015
  • 279
  • 2
  • 10
  • possible duplicate of [What is the JSF resource library for and how should it be used?](http://stackoverflow.com/questions/11988415/what-is-the-jsf-resource-library-for-and-how-should-it-be-used) – kolossus Jun 27 '14 at 15:44

1 Answers1

2

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?

Community
  • 1
  • 1
HockChai Lim
  • 1,675
  • 2
  • 20
  • 30