Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Getting Started With WebObjects


   

Designing the Main Page

Every WebObjects application has at least one component--usually named Main--that represents the first page the application displays. In Movies, the Main component represents the MovieSearch page.

To design the Main component, you'll use the WebObjects Application Wizard. The wizard performs all the setup that's necessary to fetch database records and display them in a web page. Specifying different wizard options yields different pages: The MovieSearch page is an example of one of the many different layouts you can generate with the wizard.

Starting the WebObjects Application Wizard

  1. In Project Builder, choose Project  New.

  2. In the New Project panel, select Webobjectsapplication from the Project Type pop-up list.

  3. Click Browse.

  4. Navigate to a directory where you want to create your new project.

  5. Type Movies in the "File name" field.

  6. Click Save.

  7. In the New Project panel, click OK.

    This starts the WebObjects Application Wizard.

    Note:  On Mac OS X Server, the file browser and the Project Type pop-up list both appear on the New Project panel.

  8. Choose Wizard under Available Assistance.

    With this option, the wizard guides you through the creation of a Main component for your application. When you finish, you can immediately build and run your application without performing any additional steps and without adding any code.

  9. Choose Java as the primary language.

  10. Click Next.

Specifying a Model File

Choosing an Adaptor

Choosing What to Include in Your Model

Choosing the Tables to Include

Specifying Primary Keys

Specifying Referential Integrity Rules

Choosing an Entity

Choosing a Layout

Choosing Attributes to Display


© 1999 Apple Computer, Inc. – (Last Updated 24 Aug 99)