er.ajax
Class AjaxResponse.AjaxResponseDelegate
java.lang.Object
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
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 |
AjaxResponse.AjaxResponseDelegate
public AjaxResponse.AjaxResponseDelegate()
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 requestresponse
- the responsecontext
- the context
- Returns:
- the replacement results to use
Copyright © 2002 – 2007 Project Wonder.