Wiki source code of WOConditional
Last modified by Pascal Robert on 2012/01/30 22:36
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{toc/}} | ||
2 | |||
3 | = Introduction = | ||
4 | |||
5 | A WOConditional object controls whether a portion of the HTML page will be generated, based on the evaluation of its assigned condition. | ||
6 | |||
7 | = Usage = | ||
8 | |||
9 | {{code}} | ||
10 | |||
11 | WOConditional { | ||
12 | condition=aBoolean; | ||
13 | [negate=aBoolean;] | ||
14 | } | ||
15 | |||
16 | {{/code}} | ||
17 | |||
18 | = Bindings = | ||
19 | |||
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 | ))) | ||
30 | |||
31 | = Examples = | ||
32 | |||
33 | == Java methods == | ||
34 | |||
35 | == WOD-style == | ||
36 | |||
37 | {{code/}} | ||
38 | |||
39 | == Inline bindings (WOOGNL) == | ||
40 | |||
41 | {{code/}} | ||
42 | |||
43 | = Related documents = | ||
44 | |||
45 | [[ERXWOConditional>>url:http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/conditionals/ERXWOConditional.html||shape="rect"]] |