Apple WebObjects 3.5 Manual de usuario Pagina 57

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 120
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 56
Adding the Finishing Touches
57
4. Enter the following code before the return statement in clearGuestList:
[[self application] clearGuests];
This code calls the application’s clearGuests method, which removes all
the Guest objects from the array.
5. Save
GuestList.wos.
6. Go back to WebObjects Builder.
7. Place the cursor below the table and press Enter.
8. Choose from the Elements pop-up list and click .
This creates a submit button that the user will click to clear the guest
list.
9. Using the Inspector, bind the submit button’s
value attribute to
(including the quotes)
"Clear Guest List".
This changes the title of the button. Note that the quotes are
necessary to indicate that you’re binding a string, not a variable.
10. Bind the
action attribute to clearGuestList.
When the user clicks the button, the
clearGuestList action method is
called, which causes the guest list to be cleared and the page to be
redrawn.
Adding a Dynamic Hyperlink
Now you’ll create a hyperlink that returns the user to the Main page.
1. Place the cursor below the submit button (outside the rectangle of its
containing form).
2. Choose from the Elements pop-up list and click .
3. Double-click the text “Hyperlink” and type
Return to Sign-in
Page.
4. Inspect the hyperlink.
Vista de pagina 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 119 120

Comentarios a estos manuales

Sin comentarios