4.1

Table Of Contents
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.
Properties
The vco:IncludeJavascript component defines the following properties.
Name Type Description
src
String The path to a Javascript file, with or
without the .js extension
Example: vco:IncludeJavascript Component
The .js file extension is optional. The following example code lines both return the same src value.
<script jwcid="@vco:IncludeJavascript" src="dojo"/>
<script jwcid="@vco:IncludeJavascript" src="dojo/dojo.js"/>
vco:IncludeStylesheet Component
The vco:IncludeStylesheet component inserts a <link> tag that links to an external CSS file in a Web view.
You insert the vco:IncludeStylesheet component in the <head> tags of a Web view page.
Properties
The vco:IncludeStylesheet component defines the following properties.
Name Type Description
href or src String Name of a CSS file, with or without
the .css extension.
attribute
String Name of a Web view attribute that
contains a path to the CSS files.
The href or src properties are unnecessary if you provide an attribute property. If you store CSS files in a
dedicated folder in the Web view file structure, you can include the folder name in the path you provide to
the href or src property.
vCenter Orchestrator Developer's Guide
302 VMware, Inc.