4.0

Table Of Contents
Example: vmo:IfMemberOf Component
The following example shows how to use the vmo:IfMemberOf component to add information about a user's
LDAP group membership to a Web view.
<span jwcid="@vmo:IfMemberOf" attribute="ognl:'adminGroup'">
You are a member of the group defined by the adminGroup attribute.
</span>
<span jwcid="@Else">
You are not a member of the group defined by the adminGroup attribute.
</span>
vmo:IncludeJavascript Component
The vmo: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 vmo:IncludeJavascript component in the <head> tags of a Web view page.
Properties
The vmo:IncludeJavascript component defines the following properties.
Name Type Description
src
String The path to a Javascript file, with or without the *.js extension
Example: vmo:IncludeJavascript Component
The *.js file extension is optional. The following example code lines both return the same src value.
<script jwcid="@vmo:IncludeJavascript" src="dojo"/>
<script jwcid="@vmo:IncludeJavascript" src="dojo/dojo.js"/>
vmo:IncludeStylesheet Component
The vmo:IncludeStylesheet component inserts a <link> tag that links to an external CSS file in a Web view.
You insert the vmo:IncludeStylesheet component in the <head> tags of a Web view page.
Properties
The vmo: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.
Example: vmo:IncludeStylesheet Component
The *.css file extension is optional. The following example code lines both return the same href or src value.
<link jwcid="@vmo:IncludeStylesheet" href="default.css"/>
<link jwcid="@vmo:IncludeStylesheet" href="default"/>
vCenter Orchestrator Developer's Guide
302 VMware, Inc.