public Component showDetails() { MovieDetails nextPage = (MovieDetails)application().pageWithName("MovieDetails"); EnterpriseObject selection = (EnterpriseObject)movieDisplayGroup.selectedObject(); nextPage.setSelectedMovie(selection); return nextPage; }
This method creates the MovieDetails page and then invokes its setSelectedMovie method with the movie that's selected in the Main page. The display group method selectedObject returns its selected object, which, in the Main component, is set when a user clicks a movie title hyperlink.
Table of Contents Next Section