Wiki source code of WOConditional
Version 9.1 by Pascal Robert on 2012/01/30 22:36
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
3.1 | 1 | {{toc}}{{/toc}} |
2 | |||
3 | = Introduction = | ||
4 | |||
![]() |
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 | |||
![]() |
3.1 | 7 | = Usage = |
8 | |||
9 | {{code}} | ||
10 | |||
![]() |
9.1 | 11 | WOConditional { |
12 | condition=aBoolean; | ||
13 | [negate=aBoolean;] | ||
14 | } | ||
![]() |
3.1 | 15 | |
16 | {{/code}} | ||
17 | |||
18 | = Bindings = | ||
19 | |||
![]() |
9.1 | 20 | | negate | Inverts the sense of the condition. By default, negate is assumed to be false. |
21 | | condition | 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). | ||
22 | |||
![]() |
3.1 | 23 | = Examples = |
24 | |||
25 | == Java methods == | ||
26 | |||
27 | == WOD-style == | ||
28 | |||
29 | {{code}} | ||
30 | |||
31 | |||
32 | {{/code}} | ||
33 | |||
34 | == Inline bindings (WOOGNL) == | ||
35 | |||
36 | {{code}} | ||
37 | |||
38 | |||
39 | {{/code}} | ||
40 | |||
41 | = Related documents = | ||
![]() |
9.1 | 42 | |
43 | [[ERXWOConditional>>http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/conditionals/ERXWOConditional.html]] |