Apple WebObjects 3.5 Bedienungsanleitung Seite 82

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

Kommentare zu diesen Handbüchern

Keine Kommentare

Motorola DCT6400 Phase III manuály

Uživatelské manuály a uživatelské příručky pro Digitální videorekordéry (DVR) Motorola DCT6400 Phase III.
Poskytujeme 1 manuály pdf Motorola DCT6400 Phase III ke stažení zdarma podle typů dokumentů: Uživatelský manuál






Další produkty a příručky pro Digitální videorekordéry (DVR) Motorola

Modely Typ Dokumentu
VIP 1903 Instalační manuál   Motorola VIP 1903 Installation manual, 9 stránky
DCH3416 Uživatelská příručka   Motorola DCH3416 User guide, 48 stránky
DCX3400 Uživatelský manuál    DCX3400 Series Serie DCX3400 READ THIS FIRST, 2 stránky
DSR315 Instalační manuál   Motorola DSR315 Installation manual, 16 stránky
RNG200N Uživatelský manuál   Operating Manual For Easy Clicker, 24 stránky
VIP1700 Uživatelský manuál   Set-top Box Users` Guide, 11 stránky
DCX3510-M Instalační manuál   Motorola DCX3510-M Installation manual, 102 stránky
DCX3501-M Uživatelská příručka   Motorola DCX3501-M User guide, 58 stránky
MTS HDTV set-top box Technické informace   Motorola MTS HDTV set-top box System information, 65 stránky
DVR530 Uživatelský manuál   Motorola DVR530 User`s manual, 70 stránky
DCX3510-M Uživatelský manuál   Décodeur et enregistreur vidéo numérique (DVR, 59 stránky
DCT3080 Instalační manuál   Motorola DCT3080 Installation manual, 98 stránky
VIP 1903 Uživatelský manuál   VIP1903, 3 stránky
VIP 1910 Uživatelský manuál VIP1910-9 - Canal Digital Kabel-TV, 9 stránky
QIP7000 (P2) Series Instalační manuál   Motorola QIP7000 (P2) Series Installation manual, 86 stránky
DCX3200 P2 Uživatelská příručka   Motorola DCX3200 P2 User guide, 57 stránky
MTS HDTV set-top box Uživatelská příručka   Motorola MTS HDTV set-top box User guide, 54 stránky
SET-TOP VIP1200 Uživatelská příručka   Motorola SET-TOP VIP1200 User guide, 24 stránky
VIP 1910 Uživatelský manuál InstallationsGuide, 11 stránky
DCX3400 Uživatelská příručka   Motorola DCX3400 User guide, 51 stránky