5.5

Table Of Contents
Add a Tapestry Component in an HTML Page
You add Tapestry components to a Web view by adding a jwcid attribute to an HTML tag in a Web page.
The jwcid attribute references a Web view component.
You can add a jwcid attribute to any HTML tag. You can add references to components from the
Orchestrator Web view component library, to components from the Tapestry Standard, or to custom
components that you create.
Prerequisites
Create a Web view in the Orchestrator client and exported its contents to a working directory.
Procedure
1 Open an HTML page of a Web view in an HTML editor.
2 Add an arbitrary tag to the HTML file, in the position at which the Web view component is to appear in
the page.
For example, add the following arbitrary tag in the appropriate position in the HTML file:
<vco>
3 Add to the arbitrary tag a jwcid attribute that references a Web view component.
For example, the following jwcid attribute adds the vco:DisplayProperty component from the
Orchestrator library to the Web view.
<vco jwcid="@vco:DisplayProperty">
The vco:DisplayProperty component obtains and displays the properties of an object that is in the
server in the Web view.
4 Add the additional properties that the component requires to the arbitrary HTML tag.
For example, the following Web view component displays the MyVirtualMachine virtual machine Name
property in a Web view.
<vco jwcid="@vco:DisplayProperty" name="Name" property="MyVirtualMachine"/>
You added a reference to a Web view component to a Web page in a Web view.
Creating Tapestry Web View Components
With Orchestrator, you can create custom Tapestry Web view components to perform orchestration
functions from Web pages. A Tapestry Web view component conforms to the Tapestry Framework standard
version 4.0.
A Tapestry Web view component must contain a component specification file and a component template.
IMPORTANT The Tapestry component template file and the component specification must have the same
name. For example, if you name a component template MyComponent.html, you must name the associated
component specification MyComponent.jwc. Web view components that you use in different Web views that
run in the same server must have unique names.
Developing Web Views for VMware vCenter Orchestrator
26 VMware, Inc.