<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.

Figure B.25. <private-asset> Attributes

NameTypeRequired ?Default ValueDescription
namestringyes The name of the asset, which must be a valid Java identifier.
resource-pathstringyes The path to the asset on the classpath. The path should begin with leading forward slash.