Project Wonder 5.0

er.ajax
Class AjaxResponse.AjaxResponseDelegate

java.lang.Object
  extended by er.ajax.AjaxResponse.AjaxResponseDelegate
All Implemented Interfaces:
ERXAjaxApplication.ERXAjaxResponseDelegate
Enclosing class:
AjaxResponse

public static class AjaxResponse.AjaxResponseDelegate
extends java.lang.Object
implements ERXAjaxApplication.ERXAjaxResponseDelegate

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

Constructor Summary
AjaxResponse.AjaxResponseDelegate()
           
 
Method Summary
 com.webobjects.appserver.WOActionResults handleNullActionResults(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
          When an Ajax request generates a null result, this method is called to provide an alternative response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxResponse.AjaxResponseDelegate

public AjaxResponse.AjaxResponseDelegate()
Method Detail

handleNullActionResults

public com.webobjects.appserver.WOActionResults handleNullActionResults(com.webobjects.appserver.WORequest request,
                                                                        com.webobjects.appserver.WOResponse response,
                                                                        com.webobjects.appserver.WOContext context)
Description copied from interface: ERXAjaxApplication.ERXAjaxResponseDelegate
When an Ajax request generates a null result, this method is called to provide an alternative response.

Specified by:
handleNullActionResults in interface ERXAjaxApplication.ERXAjaxResponseDelegate
Parameters:
request - the request
response - the response
context - the context
Returns:
the replacement results to use

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.