Apple WebObjects 3.5 User Manual Page 83

  • Download
  • Add to my manuals
  • Print
  • Page
    / 120
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 82
Examining Your Project
83
1. Inspect the hyperlink.
Its
action attribute is bound to the action method selectObject.
2. Look in the
Main.java class to see how selectObject is implemented.
The method (shown below) simply sets
movieDisplayGroups selected
object to the movie the user clicked.
public void selectObject() {
movieDisplayGroup.selectObject(movie);
}
Bindings in the Editing Part
The text fields in the editing part are all bound to attributes of the
movieDisplayGroup’s selectedObject—the movie on which the user clicked.
Typing new values into these fields updates the Movie enterprise object.
To actually save the updated values to the database, the user must click the
“Save to database” button.
Page view 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 119 120

Comments to this Manuals

No comments