Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Tools and Techniques

 

Generating Templates

To generate a template:

  1. Click the Expert Mode button at the bottom of the Web Assistant to enter Expert mode.

  2. Click the Generate tab at the top of the Web Assistant.

  3. Select the task corresponding to the page you want to generate. In the Select "*all*" in the Entities pop-up list.

    You must select "*all*" for the entities because the template is independent of the entity. You cannot select "*all*" for the task to generate multiple templates. You must generate the templates one at a time.

  4. Make sure the "Use DirectToWeb or User Template" radio button is selected.

  5. Click Generate Template.

    The Generate Template window appears. It contains a text field with a default name for your template. You can edit the name if you choose.

  6. Click the Ok button.

    Direct to Web copies a component (with extension .wo ) and a corresponding .java file from a predefined template and adds them to your project. You may have to wait a few moments for this process to complete. Your settings are automatically saved.

  7. Rebuild your project.

After you generate the template and rebuild your project, you can use the Web Assistant to apply the template to a Direct to Web page. See Customizing Pages .


© 1999 Apple Computer, Inc. – (Last Updated July 27 99)