Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Creating a Java Client Application: A Tutorial

   

Adding Web Components (with Interface Controllers)

You can use Project Builder to add a web component containing a WOJavaClientApplet component with a binding to an EOInterfaceController subclass in your project. To create such a web component:

  1. Select the Web Components bucket in your root (main) project.

  2. Choose New In Project from the File menu.

  3. In the New File panel, enter the name of the new web component.

    This also become the name of the EOInterfaceController subclass and its interface file to be used in this web component.

  4. In the first screen of the WebObjects Component Wizard, select Java Client for assistance and select a language (usually Java). Click Next. (The Java Client option is disabled if your project does not contain a EOJavaClientSubproject subproject.

  5. If you have multiple EOJavaClientSubproject subprojects, the next wizard screen ask you to pick the one you want to associate with the component. Select a subproject and click Next.

  6. In the final wizard screen, select the template and associated options to use for the user interface. Follow the wizard's instructions, which vary depending on which options you choose.

When you complete these steps Project Builder adds the following files to your main project:

In addition, Project Builder adds two files to the client-side subproject you chose in the wizard:

Project Builder presents the wizard with the Java Client assistance option only if your project has at least one subproject of type EOJavaClientSubproject.


© 1999 Apple Computer, Inc. – (Last Updated 13 Sep 99)