Wednesday, June 15, 2011

xhtml file include js files in ee6

inside h:head include following tags
< h:outputScript name="javascript.js" target="head"> < /h:outputScript>
javascript.js should be inside resources folder,this will be load by javax.faces.resource

when load css file,it should go like this
< h:outputStylesheet name="css/jsfcrud.css"/>
jsfcrud.css file be inside resource/css folder


this piece of code can be put anywhere that use target to put script tag in head or body.

No comments:

Post a Comment