WOSwitchComponent

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

Introduction

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.

Usage


WOSwitchComponent {
  WOComponentName=aComponentName;
  ...
}

Bindings

 WOComponentName  Name of the component to display. This attribute can be a string or a method that returns the name.
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. 

Examples

Java methods

WOD-style


Inline bindings (WOOGNL)


Related documents

ERXSwitchComponent