Apple WebObjects 3.5 Manual do Utilizador Página 83

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 120
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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.
Vista de página 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 119 120

Comentários a estes Manuais

Sem comentários