<private-asset> element

Specifies located from the classpath. These exist to support reusable components packages (as part of a <library-specification>) packaged in a JAR. Private assets will be localized.

Assets for an instantiated component (or page) may be accessed using the OGNL expression assets.name.

The resource path may either be complete and absolute, and start with a leading slash, or be relative. Relative paths are evaluated relative to the location of the containing specification.

Figure C.25. <private-asset> Attributes

NameTypeRequired ?Default ValueDescription
namestringyes The name of the asset, which must be a valid Java identifier.
resource-pathstringyes The absolute or relative path to the asset on the classpath.