WOCheckBox
Synopsis
WOCheckBox { [name = fieldName;]
[value = defaultValue;
[selection = selectedValue;]]
[disabled = YES|NO;] ... };
WOCheckBox {
[name = fieldName;]
[checked = YES|NO;]
[disabled = YES|NO;] ... };
Description
A WOCheckBox object displays itself in the HTML page as its namesake, a check box user interface control. It corresponds to the HTML element <INPUT TYPE="CHECKBOX"...>.
- name
-
A name that uniquely identifies this element within the form. You may specify a name or let WebObjects automatically assign one at runtime.
- value
-
Sets the value of this input element. If not specified, WebObjects provides a default value.
- selection
-
If selection and value are equal when the page is generated, the check box is checked. When the page is submitted, selection is assigned the value of the check box.
- checked
-
During page generation, if checked evaluates to YES, the check box appears in the checked state. During request handling, checked reflects the state the user left the check box in: YES if checked; NO if not.
- disabled
-
If disabled evaluates to YES, this element appears in the page but is not active.
Examples