The content-definition
object provides an extensible way to link static content, such as CSS, HTML or JavaScript to framework objects. The MIME type of the content is specified with the content-definition
object. Any framework object can define content definitions mapped by key. The following is an example of how to import CSS contents into a JSP page:
<c:out value="${mySkin.contents.css.body}"/>
The attributes of the content-definition
object, in addition to the attributes inherited from the FrameworkObject
base class, are:
Attribute | Description |
---|---|
| The text context that is defined as an alternative to referencing the content by a URL. |
| Logical identifier that other objects use to refer to this object. This identifier is exposed to other objects and to the code. and is the primary external way to refer to the object. |
| The type of content being defined. For example, content with a MIME type of |
| The Web context for rendering content from other Web applications. |
| A URL that references the static content. |
| Indicates whether the content is referenced externally by a URL. If the URL flag is false, the body of the static content is contained internally in the |
The extension method of the ContentDefinitionHome
interface is:
Returns | Method | Description |
---|---|---|
|
| Returns the Arguments: String |