Tutorial
8
Tutorial 6: Creating a Form
The Web Component Framework contains many components that have a value property
and there are situations in which some other component may be interested in being
passed that value. This tutorial begins by investigating how to configure context settings
so that the value of one component can be passed to one or more other components.
We’ll go one step further in this tutorial and pass the values to a Groovy task
component.
This tutorial assumes that you have a working knowledge of vFoglight’s API and that
you are familiar with Groovy. It makes no attempt to be a tutorial for the vFoglight API
or for Groovy. This tutorial shows you how to create context entries that can be used as
parameters in the scripts. The Groovy scripts and the task component called Execute
Groovy Script are used to invoke vFoglight methods and pass the context values as
parameters to these methods.
A page that contains many input components can be made to behave like a form. The
user fills in various input fields on the form, which in this example is a Grid container,
but it is only by pressing the form’s Submit button that the context keys are updated and
the values are transmitted to the server. The form that we’ll use in this tutorial is called
Add a host form (to distinguish it from the Add a host task). It has only two fields and a
submit button, but it illustrates the general idea. The form could have any number of
input fields.
This tutorial contains:
Objectives of Tutorial 6..............................................................................................................120
Configuring the Query...............................................................................................................120
Overview....................................................................................................................................121
Creating the Tasks and Forms...................................................................................................123
Testing the Application...............................................................................................................137










