Documentation Archive Developer
Search
PATH Documentation > WebObjects

PreviousNext 

Direct to Web Reusable Components

Some Direct to Web templates can be viewed as implementing more than one task:

Direct to Web displays these subcomponents with Direct to Web templates. For example, a NEUMasterDetailPage displays its select component using a NEUListPage and its edit component with a NEUInspectPage. However, the Direct to Web templates are not designed to be nested directly within other Direct to Web templates. To permit nesting, Direct to Web uses another type of component called a Direct to Web reusable component, which acts as an interface between the outer template and the inner template. There are five types of Direct to Web reusable components; they are listed in Table 3-3.


Table 3-3 Reusable components
Name Task
D2WEdit Edit
D2WInspect Inspect
D2WList List
D2WQuery Query
D2WSelect Select

Table 3-4 shows how the reusable components are used in the Direct to Web templates containing multiple tasks. The remaining templates do not contain Direct to Web reusable components.


Table 3-4 Direct to Web templates and reusable components
Direct to Web Template Direct to Web Reusable Components Used
BASMasterDetailPageNEUMasterDetailPageWOLMasterDetailPage D2WSelect, D2WEdit
BASEditRelationshipPageNEUEditRelationshipPageWOLEditRelationshipPage D2WSelect, D2WQuery, D2WEdit

In addition to allowing the nesting of Direct to Web templates, Direct to Web reusable components can also be embedded in your own components; they are available on a palette in WebObjects Builder. See the Direct to Web Reference for more information about the individual Direct to Web reusable components.


PreviousNext 

© 2001 Apple Computer, Inc.