Wiki source code of WOConditional

Last modified by Pascal Robert on 2012/01/30 22:36

Hide last authors
Pascal Robert 10.1 1 {{toc/}}
Pascal Robert 3.1 2
3 = Introduction =
4
Pascal Robert 9.1 5 A WOConditional object controls whether a portion of the HTML page will be generated, based on the evaluation of its assigned condition.
6
Pascal Robert 3.1 7 = Usage =
8
9 {{code}}
10
Pascal Robert 9.1 11 WOConditional {
12 condition=aBoolean;
13 [negate=aBoolean;]
14 }
Pascal Robert 3.1 15
16 {{/code}}
17
18 = Bindings =
19
Pascal Robert 10.1 20 |(((
21 negate
22 )))|(((
23 Inverts the sense of the condition. By default, negate is assumed to be false.
24 )))
25 |(((
26 condition
27 )))|(((
28 If condition evaluates to true, and assuming that negate is false, the contents of the WOConditional are displayed (the portion of the component within the WOConditional is generated).
29 )))
Pascal Robert 9.1 30
Pascal Robert 3.1 31 = Examples =
32
33 == Java methods ==
34
35 == WOD-style ==
36
Pascal Robert 10.1 37 {{code/}}
Pascal Robert 3.1 38
39 == Inline bindings (WOOGNL) ==
40
Pascal Robert 10.1 41 {{code/}}
Pascal Robert 3.1 42
43 = Related documents =
Pascal Robert 9.1 44
Pascal Robert 10.1 45 [[ERXWOConditional>>url:http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/conditionals/ERXWOConditional.html||shape="rect"]]