如果使用primefaces2.2.1,请使用h:outputStylesheet标记并将其包含在h:body中,而不要包含在h:head中,以覆盖primefaces样式表,与h:outputscript相同。
例:
<h:body> <h:outputStylesheet library="css" name="YOURSTYLES.css" /> <h:outputscript library="javascript" name="YOURscript.js" target="head" /></h:body>



