public class AjaxResponse extends ERXResponse
Modifier and Type | Class and Description |
---|---|
static class |
AjaxResponse.AjaxResponseDelegate
If you click on, for instance, an AjaxInPlace, that sends a request to the server that
you want to be in edit mode.
|
ERXResponse.Context
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
Modifier and Type | Field and Description |
---|---|
static String |
AJAX_UPDATE_PASS |
ContentDispositionHeaderKey, ContentTypeHeaderKey, DisablePageCachingKey
_channelCount, _channelPosition, _contentInputStream, _contentInputStreamBufferSize, _contentInputStreamLength, _fileChannel, _lastDitchErrorResponse
_content, _contentData, _contentEncoding, _cookies, _headerEncoding, _httpHeaders, _httpVersion, _storePageInBacktrackCache, _TheCookieKey, _TheSetCookieKey, _userInfo, HTTP_STATUS_FORBIDDEN, HTTP_STATUS_FOUND, HTTP_STATUS_INTERNAL_ERROR, HTTP_STATUS_MOVED_PERMANENTLY, HTTP_STATUS_NO_CONTENT, HTTP_STATUS_NOT_FOUND, HTTP_STATUS_OK, map, TheDefaultResponseEncoding
Constructor and Description |
---|
AjaxResponse(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context) |
Modifier and Type | Method and Description |
---|---|
static void |
addAjaxResponseAppender(AjaxResponseAppender responseAppender)
Add a response appender to the list of response appender.
|
void |
appendScriptFooterIfNecessary()
Convenience method that calls
AjaxUtils.appendScriptFooterIfNecessary with this request. |
void |
appendScriptHeaderIfNecessary()
Convenience method that calls
AjaxUtils.appendScriptHeaderIfNecessary with this request. |
com.webobjects.appserver.WOResponse |
generateResponse() |
static boolean |
isAjaxUpdatePass(com.webobjects.appserver.WORequest request) |
void |
updateDomElement(String id,
Object value)
Convenience method that calls
updateDomElement with no formatters and no valueWhenEmpty string. |
void |
updateDomElement(String id,
Object value,
String numberFormat,
String dateFormat,
String valueWhenEmpty)
Convenience method that calls
AjaxUtils.updateDomElement with this request. |
__setContent, _finalizeInContext, allowClientCaching, contentDisposition, contentType, disableClientCaching, isAttachment, isHTML, isIE, isPageCachingDisabled, isXHTML, mark, popContent, popPartial, pushContent, pushPartial, setAllowClientCaching, setUserInfoForKey, setXHTML, userInfoForKey
_appendTagAttributeAndValue, _isClientCachingDisabled, _redirectionResponseForAbsoluteURL, _redirectResponse, clone, contentInputStream, contentInputStreamBufferSize, contentInputStreamLength, setContentStream, setContentStream, setStatus, status, toString
_appendContentAsciiString, _contentLength, _finalizeCookies, _initCookies, _setHeaders, _stringByEscapingString, addCookie, appendContentCharacter, appendContentData, appendContentDOMDocumentFragment, appendContentHTMLAttributeValue, appendContentHTMLString, appendContentString, appendHeader, appendHeaders, canAccessFieldsDirectly, content, contentAsDOMDocument, contentEncoding, contentString, cookies, defaultEncoding, defaultHeaderEncoding, defaultURLEncoding, equals, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasHeaderForKey, headerForKey, headerForKey, headerKeys, headers, headersForKey, httpVersion, removeCookie, removeHeadersForKey, requiresHTMLEscaping, setContent, setContent, setContent, setContent, setContentDOMDocument, setContentEncoding, setDefaultEncoding, setDefaultHeaderEncoding, setDefaultURLEncoding, setHeader, setHeaders, setHeaders, setHTTPVersion, setStorePageInBacktrackCache, setUserInfo, storePageInBacktrackCache, stringByEscapingHTMLAttributeValue, stringByEscapingHTMLString, takeValueForKey, takeValueForKeyPath, unableToSetNullForKey, userInfo, valueForKey, valueForKeyPath
public static final String AJAX_UPDATE_PASS
public AjaxResponse(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
public static void addAjaxResponseAppender(AjaxResponseAppender responseAppender)
AjaxResponseAppender
that renders a javascript block that calls
MyNotificationsUpdate() only if there are notifications to be shown. Without
response appenders, you would have to include a check in all of your
components to do this.responseAppender
- the appender to addpublic com.webobjects.appserver.WOResponse generateResponse()
generateResponse
in interface com.webobjects.appserver.WOActionResults
generateResponse
in class com.webobjects.appserver.WOResponse
public static boolean isAjaxUpdatePass(com.webobjects.appserver.WORequest request)
public void appendScriptHeaderIfNecessary()
AjaxUtils.appendScriptHeaderIfNecessary
with this request.public void appendScriptFooterIfNecessary()
AjaxUtils.appendScriptFooterIfNecessary
with this request.public void updateDomElement(String id, Object value, String numberFormat, String dateFormat, String valueWhenEmpty)
AjaxUtils.updateDomElement
with this request.id
- ID of the DOM element to updatevalue
- The new valuenumberFormat
- optional number format to format the value withdateFormat
- optional date format to format the value withvalueWhenEmpty
- string to use when value is nullAjaxUtils.updateDomElement(WOResponse, String, Object, String, String, String)
Copyright © 2002 – 2020 Project Wonder.