AjaxResponse.AjaxResponseDelegate Class Reference

Inherits er::extensions::appserver::ajax::ERXAjaxApplication::ERXAjaxResponseDelegate.

Collaboration diagram for AjaxResponse.AjaxResponseDelegate:

Collaboration graph
[legend]

List of all members.

Public Member Functions

WOActionResults handleNullActionResults (WORequest request, WOResponse response, WOContext context)


Detailed Description

If you click on, for instance, an AjaxInPlace, that sends a request to the server that you want to be in edit mode. The server flips its state so it is now in edit mode, but if you click a second time before the response comes back, the state has changed, so your click doesn't actually get delivered to an Ajax component. If there was no recipient of your click, it means that there also is no update container specified to be updated and your response was not turned into an AjaxResponse. This means that the second click causes the contents to be replaced with a blank.

AjaxResponseDelegate looks for the confluence of all of these events and uses its fallback of pulling the update container ID out of the query parameters (generated on the Javascript side) and forces an AjaxResponse process to occur.

Author:
mschrag

Member Function Documentation

WOActionResults handleNullActionResults ( WORequest  request,
WOResponse  response,
WOContext  context 
)

When an Ajax request generates a null result, this method is called to provide an alternative response.

Parameters:
request the request
response the response
context the context
Returns:
the replacement results to use

Implements ERXAjaxApplication.ERXAjaxResponseDelegate.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:39 2012 for Project Wonder by  doxygen 1.5.8