Table of Contents
Preface
About WebObjectsCreating a Simple WebObjects Application
Creating a WebObjects Application Project Choosing the Programming Language Examining Your Project Launching WebObjects Builder Creating the Page's Content Entering Static Text Using the Inspector Creating Form-Based Dynamic HTML Elements Resizing the Form Elements Binding Elements Creating Variables Binding the Input Elements Implementing an Action Method Creating the Application's Output Building and Running Your ApplicationEnhancing Your Application
Duplicating Your Project Creating a Custom Guest Class Binding the Class's Instance Variables to the Form Elements Creating a Table to Display the Output Adding Dynamic Elements to Table Cells Binding the Dynamic Elements in the Table Creating the Guest Object Keeping Track of Multiple Guests Creating a Guest List Adding Guests to the Guest List Adding a Second Component Using a Repetition Adding the Finishing Touches Clearing the Guest List Adding a Dynamic HyperlinkCreating a WebObjects Database Application
The Movies Application Enterprise Objects and the Movies Database Enterprise Objects and Relationships Designing the Main Page Starting the WebObjects Application Wizard 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 Choosing an Attribute to Display as a Hyperlink Choosing Attributes to Query On Running Movies Examining Your Project Examining the Variables Examining the Bindings Refining Main.wo Specifying a Sort Order Specifying Default Values for New Enterprise Objects Setting a Date Format Setting a Number Format Optional Exercise Adding the MovieDetails Page Creating the MovieDetails Component Storing the Selected Movie Navigating from Main to MovieDetails Designing MovieDetails' User Interface Adding Date and Number Formats Navigating from MovieDetails to Main Running Movies Refining Your Model Opening Your Model Removing Foreign Keys as Class Properties Adding Relationships to Your Model Using the Advanced Relationship Inspector Where Do Primary Keys Come From? Setting Up a Master-Detail Configuration Creating a Detail Display Group Adding a Repetition Configuring a Repetition Running Movies Updating Objects in the Detail Display Group Managing a WODisplayGroup's Selection Adding a Form Adding a Talent Display Group Configuring the Browser Adding Insert, Save, and Delete Buttons Adding Behavior to Your Enterprise Objects Specifying Custom Enterprise Object Classes Generating Custom Enterprise Object Classes Adding Custom Behavior to Talent Providing Default Values in MovieRole Running Movies Erratum© 1999 Apple Computer, Inc. (Last Updated 24 Aug 99)