Skip to end of metadata
Go to start of metadata

The CSS and javascript resources needed by your JSF pages can be added directly from inside your templates.

Let us consider the following JSF page:

The simplest way to include resources to the page is to add a <nxthemes:require> tag to your JSF template:

This will load the myCss.css style and the myScript.js script and all their dependencies automatically whenever the JSF page is being displayed.

If you are using freemarker templates under WebEngine, the syntax is:

 Resources are declared as theme contributions as usual:

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.