Wiki source code of WOSwitchComponent

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

Hide last authors
Pascal Robert 13.1 1 {{toc/}}
Pascal Robert 4.1 2
3 = Introduction =
4
Pascal Robert 12.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 12.1 11 WOSwitchComponent {
12 WOComponentName=aComponentName;
13 ...
14 }
Pascal Robert 4.1 15
16 {{/code}}
17
18 = Bindings =
19
Pascal Robert 13.1 20 |(((
21 WOComponentName
22 )))|(((
23 Name of the component to display. This attribute can be a string or a method that returns the name.
24 \\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.
25 )))
Pascal Robert 12.1 26
Pascal Robert 4.1 27 = Examples =
28
29 == Java methods ==
30
31 == WOD-style ==
32
Pascal Robert 13.1 33 {{code/}}
Pascal Robert 4.1 34
35 == Inline bindings (WOOGNL) ==
36
Pascal Robert 13.1 37 {{code/}}
Pascal Robert 4.1 38
39 = Related documents =
Pascal Robert 12.1 40
Pascal Robert 13.1 41 [[ERXSwitchComponent>>url:http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/_private/ERXSwitchComponent.html||shape="rect"]]