Supported Types
The Gently System supports the following types:
int and int[]
boolean
String and String[]
In forms, you use input elements (widgets) to supply actual parameters for the
formal parameters of the generated method, which is called, when the
form's submit button is pressed.
You can't use every input element with every target type.
Example given, it is not sensible to use a HTML-textfield to enter a boolean value.
The following table specifies which combinations of widgets and types
are admitted by Gently. Wrong combinations are refused by
Gently's static type checker. The first column of the table shows
the Gently keyword used in the gently form specification.
Gently keyword
widget
int
int[]
boolean
String
String[]
TEXT
XXX
XXX
TEXTAREA
XXX
CHECKBOX
XXX
RADIOBUTTON
XXX
 
XXX
COMBOBOX
XXX
 
XXX
MULTIPLELIST
XXX
 
XXX
HIDDEN PARAMETER
XXX
XXX
XXX
XXX
XXX
If an HTML textfield is used to enter an int value, the generated system dynamically checks,
if the entered value is really an int. If not an error is reported.
With Gently, the only possibility to enter boolean values interactively
is a chekbox field.
Note that a group of radioboxes does not fit with array types, but just with ground types
int and String. So it serves as an enumeration. This is true for comboxes as well.
With Gently, the only possibility to enter an array of values interactively
is to use a select option structure with the multiple option set. Such a structure
is generated in Gently by using the MULTIPLELIST keyword.