5.5

Table Of Contents
You must save the component files in the components folder in the Web view file structure. If you create
subfolders in the components folder, you must specify the full path to a component when you set the jwcid
attribute in HTML pages. For example, if you include a MyBorder component in a
<WebView_Folder>\components\layout\ subfolder, you must set the jwcid attribute, as the following example
shows:
<div jwcid="@layout/MyBorder">
You can precede the @ character with a unique identifier. With the unique identifier, you can reuse the class
throughout the HTML page, by referencing the unique identifier.
In the following example, the component is Border and the unique identifier is myBorderComponent.
<div jwcid="myBorderComponent@MyBorder">
n
Tapestry Component Specification File on page 27
A Tapestry component specification file is a JWC file that refers to the Tapestry DTD definition and to
the Java class that specifies the behavior of the component.
n
Tapestry Component Template File on page 28
A Tapestry component template file is an HTML file that defines the layout of a Web view component.
n
WebviewComponent Class on page 28
The ch.dunes.web.webview.WebviewComponent class is the main class for Web view components. All
Web view component specification JWC files must implement this class.
n
WebviewPage Class on page 30
The ch.dunes.web.webview.WebviewPage class provides methods that you call in OGNL expressions in
Web view component template HTML files.
n
WebObjectComponent Class on page 31
The ch.dunes.web.webview.components.WebObjectComponent class provides methods to obtain
information from objects in the Orchestrator server. The WebObjectComponent class extends
WebviewComponent.
Tapestry Component Specification File
A Tapestry component specification file is a JWC file that refers to the Tapestry DTD definition and to the
Java class that specifies the behavior of the component.
The JWC file can also set the initial values of the Web view component properties.
Orchestrator Web views implement the following Java classes:
n
ch.dunes.web.webview.WebviewComponent
n
ch.dunes.web.webview.WebviewPage
n
ch.dunes.web.webview.components.WebObjectComponent.html
The name of the Tapestry component specification file must match the name of the component specification
JWC file.
Chapter 6 Web View Components
VMware, Inc. 27