Documentation Archive Developer
Search
PATH Documentation > WebObjects

Previous 

Direct to Web Templates

Direct to Web generates the task Web pages using instances of the D2WPage class (itself a descendent of the WOComponent class) called Direct to Web templates. A Direct to Web template defines the basic layout for the task's user interface. Direct to Web includes 29 templates: 9 for the Basic look, 10 for the Neutral look, and 10 for the WebObjects look. For more information about looks, see "The Different Looks for WebObjects Applications". The Direct to Web templates are listed in Table 3-2.


Table 3-2 Direct to Web Templates
Task Basic Look Neutral Look WebObjects Look
Confirm BASConfirmPage NEUConfirmPage WOLConfirmPage
Edit relationship BASEditRelationshipPage NEUEditRelationshipPage WOLEditRelationship- Page
Error BASErrorPage NEUErrorPage WOLErrorPage
Edit, Inspect BASInspectPage NEUInspectPage WOLInspectPage
List, Select BASListPage NEUListPage WOLListPage
List BASMasterDetailPage NEUMasterDetailPage WOLMasterDetailPage
List, Select BASPlainListPage NEUPlainListPage WOLPlainListPage
Query all BASQueryAllEntitiesPage NEUQueryAllEntitiesPage WOLQueryAllEntities- Page
Query BASQueryPage NEUQueryPage WOLQueryPage
Edit, Inspect   NEUTabInspectPage WOLTabInspectPage

Some Direct to Web templates perform multiple tasks. For example, an InspectPage template also edits. For some tasks, there are multiple Direct to Web templates in a given look that you can use. For example, you can use a ListPage, a PlainListPage, or a MasterDetailPage template to perform the list task.

Like any other WOComponent, a Direct to Web template has an HTML template (.html ) file and a bindings (.wod ) file. What differentiates a Direct to Web template from other components is that it resolves its bindings with the help of the Direct to Web framework at runtime.

Note that a Direct to Web template is different from a component's HTML template (.html ) file: a Direct to Web template is a special type of component while an HTML template is a file containing the HTML code that defines a component's appearance.


Previous 

© 2001 Apple Computer, Inc.