| PATH |

Direct to Web Reusable Components
Some Direct to Web templates can be viewed as implementing more than one task:
- A MasterDetailPage template consists of a select component at the top and an edit component at the bottom.
- An EditRelationshipPage template consists of a select component at the top and query, select, and edit components at the bottom.
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.
| 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.
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.

© 2001 Apple Computer, Inc.