The content of this documentation refers to all the Nuxeo products and modules. You may want to check the Nuxeo Platform technical documentation, the Nuxeo Studio documentation, the Core Developer Guide, or the Administration Guide.
Contributors, don't hesitate to move pages in the relevant spaces
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