JBoss Community Archive (Read Only)

Portlet Bridge 3.0

Resource Serving

When using resources from your JSF portlet it's important to ensure that they are accessed in a way that allows the JBoss Portlet Bridge to generic an appropriate Portal URL to the resource being requested.

The correct way to reference a resource is to locate it within your web application within the resources folder so that it the resource can be retrieved using JSF2 Resource Handling:


stylesheet.css would be present in the root of the resources folder as it does not specify a resource library

Use of #{resource} to retrieve the content is especially import for @import within css files.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 12:26:01 UTC, last content change 2012-07-31 17:31:59 UTC.