First you need to add a hyperlink element around the repetition's role name string so that users can select a particular MovieRole. When a user clicks one of the movie role hyperlinks, the application should select the corresponding MovieRole object in the movieRoleDisplayGroup.
Now you need to create an action method to invoke when the hyperlink is clicked.
Before you write the body of the selectObject method, bind it to the hyperlink while you're still in WebObjects Builder.
Now write the code for selectObject in MovieDetail.java.
public Component selectObject() { movieRoleDisplayGroup.selectObject(movieRole); return null; }
Table of Contents Next Section