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


   

Configuring a Repetition

Now configure MovieDetails' repetition in a way similar to the way Main's repetition is configured. First you need to create a new variable to bind to the repetition's item attribute.

  1. Use the Add Key command to add a new variable, movieRole, whose type is set to the MovieRole entity.

    Don't create set and get methods for movieRole. You won't need accessor methods because the variable is used only within the MovieDetails component and shouldn't be visible to any other classes.

  2. Bind movieRoleDisplayGroup.displayedObjects to the repetition's list attribute.

  3. Bind movieRole to the repetition's item attribute.

  4. Bind movieRole.toTalent.firstName to the value attribute of the first string in the repetition.

  5. Bind movieRole.toTalent.lastName to the value attribute of the second string.

  6. Bind movieRole.roleName to the value attribute of the last string.

    When you're done, the repetition bindings should look like the following:


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