Changes for page WOCheckBox

Last modified by Filippo Laurìa on 2013/09/08 12:44

From version 2.1
edited by Pascal Robert
on 2011/04/26 23:07
Change comment: There is no comment for this version
To version 4.1
edited by Pascal Robert
on 2011/05/08 01:22
Change comment: Migrated to Confluence 4.0

Summary

Details

Page properties
Content
... ... @@ -1,16 +1,58 @@
1 -{{toc}}{{/toc}}
1 +{{toc/}}
2 2  
3 3  = Introduction =
4 4  
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 +
5 5  = Usage =
6 6  
7 7  {{code}}
8 8  
13 +WOCheckBox {
14 + value=defaultValue;
15 + [selection=selectedValue;]
16 + [name=fieldName;]
17 + [disabled=aBoolean;] ...
18 +}
9 9  
20 +WOCheckBox {
21 + checked=aBoolean;
22 + [name=fieldName;]
23 + [disabled=aBoolean;] ...
24 +}
25 +
10 10  {{/code}}
11 11  
12 12  = Bindings =
13 13  
30 +|(((
31 +value
32 +)))|(((
33 +Value of this input element. If not specified, WebObjects provides a default value.
34 +)))
35 +|(((
36 +selection
37 +)))|(((
38 +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.
39 +)))
40 +|(((
41 +checked
42 +)))|(((
43 +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.
44 +)))
45 +|(((
46 +name
47 +)))|(((
48 +Name that uniquely identifies this element within the form. You may specify a name or let WebObjects automatically assign one at runtime.
49 +)))
50 +|(((
51 +disabled
52 +)))|(((
53 +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.
54 +)))
55 +
14 14  = Examples =
15 15  
16 16  == Java methods ==
... ... @@ -17,16 +17,10 @@
17 17  
18 18  == WOD-style ==
19 19  
20 -{{code}}
62 +{{code/}}
21 21  
22 -
23 -{{/code}}
24 -
25 25  == Inline bindings (WOOGNL) ==
26 26  
27 -{{code}}
66 +{{code/}}
28 28  
29 -
30 -{{/code}}
31 -
32 32  = Related documents =