Wiki source code of WOConditional
Version 3.1 by Pascal Robert on 2011/05/08 01:25
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{toc}}{{/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 | | 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 | |||
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 = | ||
42 | |||
43 | [[ERXWOConditional>>http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/extensions/components/conditionals/ERXWOConditional.html]] |