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.ContextNSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor| Modifier and Type | Field and Description |
|---|---|
static java.lang.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_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue| Constructor and Description |
|---|
AjaxResponse(WORequest request,
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. |
WOResponse |
generateResponse() |
static boolean |
isAjaxUpdatePass(WORequest request) |
void |
updateDomElement(java.lang.String id,
java.lang.Object value)
Convenience method that calls
updateDomElement with no formatters and no valueWhenEmpty string. |
void |
updateDomElement(java.lang.String id,
java.lang.Object value,
java.lang.String numberFormat,
java.lang.String dateFormat,
java.lang.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, valueForKeyPathpublic static final java.lang.String AJAX_UPDATE_PASS
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 WOResponse generateResponse()
generateResponse in interface WOActionResultsgenerateResponse in class WOResponsepublic static boolean isAjaxUpdatePass(WORequest request)
public void appendScriptHeaderIfNecessary()
AjaxUtils.appendScriptHeaderIfNecessary with this request.public void appendScriptFooterIfNecessary()
AjaxUtils.appendScriptFooterIfNecessary with this request.public void updateDomElement(java.lang.String id,
java.lang.Object value,
java.lang.String numberFormat,
java.lang.String dateFormat,
java.lang.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)public void updateDomElement(java.lang.String id,
java.lang.Object value)
updateDomElement with no formatters and no valueWhenEmpty string.id - ID of the DOM element to updatevalue - The new valueCopyright © 2002 – 2022 Project Wonder.