JBoss.orgCommunity Documentation

Add JavaScript to your portal

This can be done entirely within your extension by customizing the gatein-resources.xml configuration.

To add a JavaScript library, for example jQuery, create the war:/WEB-INF/gatein-resources.xml_ file.



<javascript>
  <param>
    <js-module>jQuery</js-module>
    <js-path>/javascript/jQuery.js</js-path>
    <js-priority>0</js-priority>
  </param>
</javascript>

In which: