Wiki source code of WOSwitchComponent

Version 9.1 by Pascal Robert on 2011/05/08 02:16

Hide last authors
Pascal Robert 4.1 1 {{toc}}{{/toc}}
2
3 = Introduction =
4
Pascal Robert 8.1 5 WOSwitchComponent provides a way to determine at runtime which nested component should be displayed. This component is useful when you want to decide how to display information based on the state of the application.
6
Pascal Robert 4.1 7 = Usage =
8
9 {{code}}
10
Pascal Robert 8.1 11 WOSwitchComponent {
12 WOComponentName=aComponentName;
13 ...
14 }
Pascal Robert 4.1 15
16 {{/code}}
17
18 = Bindings =
19
Pascal Robert 8.1 20 | WOComponentName | Name of the component to display. This attribute can be a string or a method that returns the name.
21 If the component specified in WOComponentName takes attributes, pass these attributes along to WOSwitchComponent following the WOComponentName attribute. Note that this means that all components that can be displayed by this WOSwitchComponent must use the same API.
22
Pascal Robert 4.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 =
42
43 [[ERXSwitchComponent>>http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/extensions/components/_private/ERXSwitchComponent.html]]