Documentation Archive Developer
Search
Table of Contents Previous Section

Web Components

A component represents a page, or part of a page, in your application. An application can have one or more components.

Every application starts with a component called Main, which is shown in the second column of the browser as Main.wo. All components have the .wo extension.

If you double-click a component, WebObjects Builder opens the component for editing. "Editing With WebObjects Builder" shows how to edit your component using WebObjects Builder.

On disk, a component is represented as a folder with the .wo extension. Every component has several files that specify the component's look and behavior. The name of each one is the component's name followed by a specific file extension. These are the files in the Main component:

To create a new component:

  1. With Web Components selected in the first column of the browser, choose File New in Project.

  2. In the New File panel, type the name of your project and click OK.

    The WebObjects Component Wizard appears.

  3. If you want the Wizard to assist you in creating a component with database access, choose Component Wizard from Available Assistance; otherwise choose None. See "Creating a WebObjects Database Application" in Getting Started With WebObjects for more information on using the Wizard with databases.

  4. Specify the language for your component and click Finish.

Table of Contents Next Section