User Templates
Sometimes you need to change the appearance of a Direct to Web page without freezing the component. You might want to change all of the pages for a particular task (list pages for example) without freezing components for every entity. Or you might want to use the Web Assistant to fine-tune pages having your custom appearance.
Direct to Web allows you to generate, modify, and use templates. Templates are WebObjects components that Direct to Web can use to generate pages (list pages for example) for any entity. Direct to Web provides a number of prebuilt templates from which you generate user templates . User templates appear together with the prebuilt templates in the Web Assistant and you can apply them to pages in your project.
The advantages of using templates are:
- You can use a template for any entity.
- You can modify the properties and page appearance with the Web Assistant.
- Since the template is a WebObjects component, you have control over its visual appearance. You can add any static or dynamic HTML elements you like, using a tool such as WebObjects Builder.
- You can add functionality to the template by editing the component's Java code, as well as by editing the bindings of the component's dynamic elements.
Generating Templates
© 1999 Apple Computer, Inc. (Last Updated July 27 99)