Documentation Archive Developer
Search
PATH Documentation > WebObjects

Up

D2WSelect



Component Description

This Direct to Web reusable component displays a select component. See the "Direct to Web" chapter of WebObjects Tools and Techniques for information about the behavior and appearance of this component.


Synopsis

D2WSelect { [action=anAction;] dataSource=aDataSource | list=anArray; [displayKeys=keyArray;] entityName=nameString; [pageConfiguration=configurationName;] selectedObject=anObject; };

Bindings

action
The action method to invoke when the user clicks Select or Return.
dataSource
An EODataSource containing the objects the user can select from.
list
An array containing the objects to display as a list.
displayKeys
The properties of the entity to edit (NSArray). You can also represent the array as a string: "(prop1, prop2, ...)".
entityName
The name of the entity this component displays (String).
pageConfiguration
The named configuration containing the Web Assistant settings for this component (String). If this binding is not specified, the "*all*" configuration for the select task and the entityName entity is used. See the "Direct to Web" chapter of WebObjects Tools and Techniques for more information about named configurations.
selectedObject
The object the user selects with this component or null if no object is selected.

Example

mySelect : D2WSelect {
    entityName = "Movie";
    selectedObject = displayGroup.selectedObject;
    dataSource = displayGroup.dataSource;
    action = selectAction;
}


Up

© 2001 Apple Computer, Inc.