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
vco:DisplayProperty Component
The vco:DisplayProperty component displays the names and values of the properties of objects in the
Orchestrator inventory.
Properties
The vco:DisplayProperty component defines the following properties.
Name Type Description
name *
String Property name
property *
String Property value
Example: vco:DisplayProperty Component
The following example shows how to use the vco:DisplayProperty component to display the details of a
virtual machine in a Web view.
<div jwcid="@vco:DisplayProperty" name="Name" property="MyVirtualMachine"/>
<div jwcid="@vco:DisplayProperty" name="Id" property="vm_89575"/>
<div jwcid="@vco:DisplayProperty" name="State" property="poweredOff"/>
vco:IfMemberOf Component
The vco:IfMemberOf component includes a block of content if the current user is a member of a given LDAP
group.
If you pass an array of LDAP groups to this component, the Web view displays the content if the current
user is a member of at least one of the groups in the list.
Properties
The vco:IfMemberOf component defines the following properties.
Name Type Description
attribute *
String
An attribute of the LdapGroup type, or
an array of LdapGroup objects.
Example: vco:IfMemberOf Component
The following example shows how to use the vco:IfMemberOf component to add information about a user's
LDAP group membership to a Web view.
<span jwcid="@vco:IfMemberOf" attribute="ognl:'adminGroup'">
You are a member of the group that the adminGroup attribute defines.
</span>
<span jwcid="@Else">
You are not a member of the group that the adminGroup attribute defines.
</span>
vco:IncludeJavascript Component
The vco:IncludeJavascript component inserts a <script> tag that defines a URL to a JavaScript file, to add
a JavaScript function to a Web view.
You insert the vco:IncludeJavascript component in the <head> tags of a Web view page.
Chapter 6 Web View Components
VMware, Inc. 33