Apple WebObjects 3.5 Bedienungsanleitung Seite 83

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 120
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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.
Seitenansicht 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 119 120

Kommentare zu diesen Handbüchern

Keine Kommentare