Thursday, June 16, 2011

JSF2 and javascript

<h:outputScript library="js" name="common.js" />

this will create

<script type="text/javascript" 
src="/JavaServerFaces/faces/javax.faces.resource/common.js?ln=js"
></script>

common.js file should be reside in resources/js folder

this is from MKYong's blog

No comments:

Post a Comment