4.1

Table Of Contents
Example: vco:ListPane Component
The following example displays a list of virtual machines in a pane of a Web view.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>
<span jwcid="@Insert" value="ognl:webview.name">Page Title</span>
| Home
</title>
</head>
<body>
<div jwcid="@Border">
<h1>Virtual Machine List</h1>
<div jwcid="vmList@vco:ListPane"
action="getVirtualMachineList"
actionParameters="attribute:vmFolder"
detailUrl="system/partials/virtual_machine.html" >
Select a virtual machine on the left to display it.
</div>
</div>
</body>
</html>
vco:Login Component
With the vco:Login component, you can customize the login page of a Web view.
The login page of a Web view must adhere to the following rules.
n
You must name the login page login.html.
n
You must save the login page at the root of the Web view file structure.
Properties
The vco:Login component has no properties.
Example: vco:Login Component
The following example code line adds a login link to a login.html page.
<span jwcid="@vco:Login">login here</span>
vco:PageAccessControl Component
The vco:PageAccessControl component allows or denies users access to the Web view page that contains this
component. The vco:PageAccessControl component checks the membership of the Web view user to an LDAP
group.
If the user is a member of at least one group that the deny attribute defines, the Web view denies the user access
to the page. If the user is not a member of a group in the deny attribute, the component checks the allow attribute.
Chapter 9 Developing Web Views
VMware, Inc. 305