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
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._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 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, KeyPathSeparator
NullValue
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(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 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 WOActionResults
generateResponse
in class WOResponse
public static boolean isAjaxUpdatePass(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 – 2024 Project Wonder.