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
Create a Web View Component to Display Virtual Machine Information
The vco:ListPane component lists virtual machines in the left side of the Web view. You can create a Web
view component to show information about each virtual machine in a Web view panel on the right side.
The Web view panel that displays the virtual machine information requires a Web view component that
obtains information from the objects that the vco:ListPane component lists and displays the information on
the right. The Web view component that obtains object properties implements the WebObjectComponent class.
Prerequisites
Make sure that you have added a vco:ListPane component to the default.html file and defined the Web
view attributes that the component requires.
Procedure
1 Create a file called panel.html and save it at the root of your working folder.
2 Add a title to the panel.html file.
<h3>Virtual Machine Information</h3>
3 Create a Web view component specification file called DisplayVmInfo.jwc in the \components folder.
4 Add references to the Tapestry DTD and the WebObjectComponent Java class to the DisplayVmInfo.jwc
component specification file.
You refer to the DTD in the DOCTYPE metatag and use <component-specification> tags to refer to 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>
5 Create a Web view component template called DisplayVmInfo.html in the /components folder.
The DisplayVmInfo.html file defines how to present the information that the component obtains.
6 Add a table to the DisplayVmInfo.html file to contain information about the virtual machines that are in
the list.
<table width="200" border="1">
<tr>
<td>Virtual machine name</td>
<td></td>
</tr>
<tr>
<td>Virtual machine attributes</td>
<td></td>
</tr>
<tr>
<td>Object ID</td>
<td></td>
</tr>
</table>
Chapter 8 Create a Simple Web View Using the Default Template
VMware, Inc. 55