4.0

Table Of Contents
10 Verify that your Web view's URL folder value matches the name of your working directory.
For example, if you created the working folder C:\Documents and
Settings\
username
\Desktop\MyWebView\, set the URL folder to MyWebView.
a If the Web view is running, right-click the Web view and select Unpublish.
b Right-click the Web view and select Edit.
c On the General tab of the Web view editor, type the name of the working folder in the URL folder
text box, and click Save and Close to close the Web view editor.
11 Right-click the Web view and select Publish.
You set the Orchestrator server to Web view development mode, in which you can preview a Web view from
your working folder while you develop it.
Edit the Virtual Machine Manager Web View Home Page
You create the home page of the Virtual Machine Manager Web view in the default.html file. The
default.html file must be at the root of the working directory.
Prerequisites
n
Import the default Web view template to Orchestrator to create the Virtual Machine Manager Web view
n
Export the contents of the Virtual Machine Manager Web view to a working directory
n
Configure Orchestrator in Web view development mode
Procedure
1 Go to the root of your working directory.
2 Open the default.html file in an HTML editor.
The default.html page uses the Border component to render itself. It contains little code, as the following
code sample shows.
<vmo jwcid="@layout/MyBorder" section="literal: home" title="Home">
<!-- Content of the homepage -->
<h2 style="margin-left: 16px; margin-top: 0px; padding-top:18px;">
Welcome to Default Webview Template
</h2>
<p style="margin-left: 16px;">
This webview is a base for your own webview development.
</p>
</vmo>
The vmo tag initializes a Tapestry component by setting the jwcid attribute to point to the MyBorder
component, which you renamed to VMMBorder.
3 Change the jwcid attribute to refer to VMMBorder instead of MyBorder.
<vmo jwcid="@layout/VMMBorder" section="literal: home" title="Virtual Machine Manager">
4 Change the title attribute to Virtual Machine Manager.
<vmo jwcid="@layout/VMMBorder" section="literal: home" title="Virtual Machine Manager">
Chapter 9 Developing Web Views
VMware, Inc. 317