5.5

Table Of Contents
The WebObjectComponent class inherits the following methods from class java.lang.Object:
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString,wait, wait, wait
Constructor
WebObjectComponent()
Example: Using WebObjectComponent to Display Object Information
The following vmo:ListPane component displays information about the objects it lists in an HTML page
called panel.html:
<p jwcid="@vmo:ListPane"
action="getVirtualMachineList"
actionParameters="attribute:vmFolder"
detailUrl="./panel.html"/>
The panel.html file contains a reference to a Web view component called DisplayVmInfo:
<vmo jwcid="@DisplayVmInfo" urlParameter="itemId" />
The DisplayVmInfo.jwc component specification file implements the WebObjectComponent Java class:
<?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.components.WebObjectComponent">
</component-specification>
The DisplayVmInfo.html component template file uses WebObjectComponent.get() methods in OGNL
statements to display object properties in panel.html:
<table width="200" border="1">
<tr>
<td>Virtual machine name</td>
<td><vmo jwcid="@Insert" value="ognl:get('name')"/></td>
</tr>
<tr>
<td>Object ID</td>
<td><vmo jwcid="@Insert" value="ognl:get('id')"/></td>
</tr>
</table>
Orchestrator Tapestry Component Library
Orchestrator has a library of Tapestry components that you can reference in Web views. You can also use all
of the components that the Tapestry Framework 4.0 standard defines.
All of the Tapestry components in the Orchestrator library have the prefix vco:, to distinguish these
components from the components that the standard Tapestry framework provides.
The components in the Orchestrator Web view component library require different properties to display
different types of information in the Web view. In the property tables for each component, asterisks (*)
denote mandatory properties.
Developing Web Views for VMware vCenter Orchestrator
32 VMware, Inc.