Wiki source code of WOCheckBox

Version 3.1 by Pascal Robert on 2011/05/08 01:22

Hide last authors
Pascal Robert 1.1 1 {{toc}}{{/toc}}
2
3 = Introduction =
4
Pascal Robert 3.1 5 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"...>.
6
7 If you want to create a list of check boxes, use the WXCheckBoxList dynamic element in the WebObjects examples.
8
Pascal Robert 1.1 9 = Usage =
10
11 {{code}}
12
Pascal Robert 3.1 13 WOCheckBox {
14 value=defaultValue;
15 [selection=selectedValue;]
16 [name=fieldName;]
17 [disabled=aBoolean;] ...
18 }
Pascal Robert 1.1 19
Pascal Robert 3.1 20 WOCheckBox {
21 checked=aBoolean;
22 [name=fieldName;]
23 [disabled=aBoolean;] ...
24 }
25
Pascal Robert 1.1 26 {{/code}}
27
28 = Bindings =
29
Pascal Robert 3.1 30 | value | Value of this input element. If not specified, WebObjects provides a default value.
31 | 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.
32 | checked | During page generation, if checked evaluates to true, the check box appears in the checked state. During request handling, checked reflects the state the user left the check box in: true if checked; false if not.
33 | name | Name that uniquely identifies this element within the form. You may specify a name or let WebObjects automatically assign one at runtime.
34 | disabled | If disabled evaluates to true, this element appears in the page but is not active. That is, selection won't contain the user's selection when the page is submitted.
35
Pascal Robert 1.1 36 = Examples =
37
38 == Java methods ==
39
40 == WOD-style ==
41
42 {{code}}
43
44
45 {{/code}}
46
47 == Inline bindings (WOOGNL) ==
48
49 {{code}}
50
51
52 {{/code}}
53
54 = Related documents =