5.5
Table Of Contents
- Developing Web Views for VMware vCenter Orchestrator
- Contents
- Developing Web Views for VMware vCenter Orchestrator
- Web View Overview
- Weboperator Web View
- Web View Development Tasks to Perform in Orchestrator
- Create a Web View Skeleton
- Export a Web View as a Template
- Create a Web View from a Template
- Define a Web View Template as a Resource Element
- Create a Web View from a Resource Element Template
- Export Web View Files to a Working Folder
- Configure the Server for Web View Development
- Import Web View Files from a Working Folder
- Create a Web View Attribute
- Add a Resource Element to a Web View
- Disable Web View Development Mode
- Publish a Web View
- File Structure of a Web View
- Web View Home Page
- Web View Components
- Tapestry Web View Components
- Creating Tapestry Web View Components
- Orchestrator Tapestry Component Library
- vco:DisplayProperty Component
- vco:IfMemberOf Component
- vco:IncludeJavascript Component
- vco:IncludeStylesheet Component
- vco:IncludeWorkflowHeader Component
- vco:ListPane Component
- vco:Login Component
- vco:PageAccessControl Component
- vco:TaskAction Component
- vco:WebformContainer Component
- vco:WorkflowLink Component
- Accessing Server Objects from URLs
- Create a Simple Web View Using the Default Template
- Import the Default Web View Template
- Export the Virtual Machine Manager Web View to a Working Folder
- Provide Unique Component Names
- Configure the Server for Web View Development
- Edit the Virtual Machine Manager Web View Home Page
- Add a vco:ListPane Component to the Web View Home Page
- Define the Web View Attributes for the vco:ListPane Component
- Create a Web View Component to Display Virtual Machine Information
- Create a Web View Tab by Using the Menu Component
- Add Links to Run Workflows from a Web View by Using the vco:WorkflowLink Component
- Customize the Web View Interface
- Publish the Virtual Machine Manager Web View
- Index
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.