PATH  Documentation > WebObjects 4.5 > Direct to Web

Table of Contents

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; [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.
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;
}


Table of Contents