Accessing resources

By using a theme, you can access resources which are automatically inserted into XPages when viewed.

Accessing resources

A theme can refer to resources that will be automatically inserted into the XPage

<resource target=''>
  	<content-type>text/css</content-type>
  	<href>/mycss.css</href> 

The URL to access a resource is of the same format as the one used by an XPage:

  • A database resource is using something like: /mydatabase.nsf/myresource.css
  • A global resource is like: /.ibmxspres/global/theme/stylesheet.css

Those resources are simply added to the XPage resource as they are, following the JSF/XPages encoding principles.