Why does JSF deliver JavaScript ressources with the file extension .jsf and GET parameter ln=js? -


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 .jsf?ln=js part.

why that?

i think .jsf causes jsf servlet take control on how resource download , hence allows library versioning.

see: what jsf resource library , how should used?


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Why am I getting Internal .NET Framework Data Provider error 1025 when passing Method to where? -

linux - phpmyadmin, neginx error.log - Check group www-data has read access and open_basedir -