4.1

Table Of Contents
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 296
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 296
A Tapestry component template file is an HTML file that defines the layout of a Web view component.
n
WebviewComponent Class on page 297
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 298
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 300
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. “Example: Web View Template Access.jwc File,” on page 296 shows a component specification file
that implements the WebviewComponent Java interface.
Example: Web View Template Access.jwc File
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 4.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
<component-specification class="ch.dunes.web.webview.WebviewComponent">
</component-specification>
Tapestry Component Template File
A Tapestry component template file is an HTML file that defines the layout of a Web view component.
The name of the Tapestry component template file must match the name of the component specification JWC
file. “Example: Web View Template Access.html File,” on page 297 shows a component template file that
displays the user's username and adds a Logout link to a Web view page.
vCenter Orchestrator Developer's Guide
296 VMware, Inc.