Apple WebObjects 3.5 Manuel d'utilisateur Page 82

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 218
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 81
Chapter 5 WebObjects Viewed Through Its Classes
82
4. It saves the session object in the session store.
5. It invokes its own
sleep method.
When an Objective-C object is about to be destroyed, its
dealloc method is
invoked at an undefined point in time after a cycle (indicated by the vertical
ellipses in Figure 24). In the
dealloc method, the object releases any retained
instance variables. In WebScript, this usually happens implicitly; you therefore
usually don’t need to implement the
dealloc method in any objects you write. In
Java, objects have automatic garbage collection, so this deallocation step is
unnecessary.
How HTML Pages Are Generated
So how exactly are request-handling messages propagated from a component to
its HTML elements? To answer this, we must understand the relationship
between a component and an HTML element.
Both components and HTML elements (static and dynamic) share a common
ancestor, WOElement (in Java, Element). WOElement declares, but does not
implement, the three request-handling messages:
takeValuesFromRequest:inContext:,
invokeActionForRequest:inContext:, and appendToResponse:inContext:. This common
inheritance, of course, makes it possible for both components and HTML
elements to participate in request handling. But there the inherited similarities
end. Although components can generate HTML content, this capability is not
an essential characteristic, as it is with objects on the other branch of the
inheritance tree.
Component Templates
The first step to generating a component’s HTML page is to create a template
for the component. This template is not the same as the HTML template
discussed in the chapter “What Is a WebObjects Application?” (page 17). In this
context, a template is a graph of WOElement and WOComponent objects
created by parsing and integrating the component’s
.html and .wod files (see Figure
25). The network of references corresponds to locations on the page and to
parent-child relationships; for instance, a WOForm element would probably
have WOTextField and WOSubmitButton children.
Vue de la page 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 217 218

Commentaires sur ces manuels

Pas de commentaire

Electrolux EK1700SRECN manuali

Manuali dei proprietari e guide per l'utente per no Electrolux EK1700SRECN.
We fornisce 2 manuali pdf Electrolux EK1700SRECN per scaricare gratuitamente in base al tipo di documento: Manuale Utente






Più prodotti e manuali per no Electrolux

Modelli Tipo di Documento
GK80TSPLCN Manuale Utente   Electrolux GK80TSPLCN Manuel utilisateur, 20 pagine
EB6PL80CN Manuale Utente   Electrolux EB6PL80CN Manuel utilisateur, 56 pagine
EME1925 Manuale Utente   Electrolux EME1925 Používateľská príručka, 12 pagine
EWT11124W Manuale Utente   Electrolux EWT11124W Ohjekirja, 25 pagine
EHO6832FOG Manuale Utente    Electrolux EHO6832FOG Uživatelský manuál, 68 pagine
EOB68713X Manuale Utente   Electrolux EOB68713X Εγχειρίδιο χρήστη, 44 pagine
ROB2200AOX Manuale Utente   Electrolux ROB2200AOX Manuale utente, 24 pagine
EWT1066ODW Manuale Utente   Electrolux EWT1066ODW Руководство пользователя, 24 pagine
ZE349 Manuale Utente    Electrolux ZE349 用户手册, 2 pagine
EOC5741BOX Manuale Utente   Electrolux EOC5741BOX User Manual, 40 pagine
EFG70310X Manuale di Installazione Electrolux EFG70310X udhëzues instalimit, 8 pagine
EOB66713X Manuale Utente   Electrolux EOB66713X Brugermanual, 84 pagine
FEX60X Manuale Utente    Electrolux FEX60X Manuale utente, 48 pagine
EWT13429W Manuale Utente Electrolux EWT13429W Brugermanual, 52 pagine
EHF3320FOK Manuale Utente   Electrolux EHF3320FOK Manuel utilisateur [es] [pl] [sk] , 32 pagine
EOB3414AOX Manuale Utente   Electrolux EOB3414AOX Manuale utente [cs] , 32 pagine
EOK66030X Manuale Utente   Electrolux EOK66030X Manuali i perdoruesit, 44 pagine
GK78IO Manuale Utente   Electrolux GK78IO GU7 Benutzerhandbuch [es] , 24 pagine
EBSL40SP Guida di Avvio Rapido   Electrolux EBSL40SP Guida Rapida [en] [it] , 4 pagine
EOC3430FOX Manuale Utente    Electrolux EOC3430AAX Manual do usuário [fr] , 68 pagine