beautypg.com

Adding the moviedetails page – Apple WebObjects 3.5 User Manual

Page 92

background image

Chapter 3

Creating a WebObjects Database Application

92

Adding the MovieDetails Page

The MovieDetails page shows you the detailed information about a movie
you select in the Main page. For this to work, the Main page has to tell the
MovieDetails page which movie the user selected. The MovieDetails page
keeps track of the selected movie in its own instance variable. In this section,
you’ll:

Create a new component whose interface you’ll create yourself.

Assign Main’s selected movie to a variable in the MovieDetails page.

Create a way to navigate from Main to MovieDetails and back.

In the sections following this one, you’ll extend the MovieDetails page to
display movie roles and the starring actors.