|
AJAX, which is an acronym for Asynchronous JavaScript and XML, allows the creation of interactive Web applications, by allowing the exchange of data ?behind the scene? without a full page refresh.
dWebSpec provides organized means of providing specification for AJAX enabled applications.
AJAX based requests appear like any other event on the page, however there are additional implications for marking an event with the ?ajax? call option.
Event Source
As discussed under the subject of element descriptor, all the dWebSpec element types have equivalent component or tag on the target platform. When an event is marked with the ?ajax? call type, for the implementation, it is the AJAX aware equivalent component that would be needed. Or else, an AJAX extender component must be associated with the component.
Except when there are no ambiguities, the event source is usually specified as (source-element.event-type). Generally the event type for standard events should be limited to server type event. For ?ajax? call type, the event type should be a client event.
Re-rendering
As a result of the AJAX request, there is usually some level of re-rendering (partial). A segment could be designated as the target for such re-rendering. The request event id would be registered on the descriptor for such segment.
For JSF, the same principles guiding the implementations of AJAX specification applies. However, AJAX aware components are not included in the standard reference implementation. This subject is discussed in this section for the Seam platform. The components discussed therein are generally applicable to AJAX reference implementation.
|