Documentation Archive Developer
Search
PATH  WebObjects 4.0 Documentation > Dynamic Elements


WOSwitchComponent


Synopsis

WOSwitchComponent { WOComponentName=aComponentName; ... };


Description

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.


Bindings


WOComponentName

Name of the component to display. This attribute can be a string or a method that returns the name of a component.

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.



Copyright © 1998, Apple Computer, Inc. All rights reserved.