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
You must save the component files in the components folder in the Web view file structure. If you create
subfolders in the components folder, you must specify the full path to a component when you set the jwcid
attribute in HTML pages. For example, if you include a MyBorder component in a
<WebView_Folder>\components\layout\ subfolder, you must set the jwcid attribute, as the following example
shows:
<div jwcid="@layout/MyBorder">
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 27
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 28
A Tapestry component template file is an HTML file that defines the layout of a Web view component.
n
WebviewComponent Class on page 28
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 30
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 31
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.
Chapter 6 Web View Components
VMware, Inc. 27