public abstract class AjaxComponent extends WOComponent implements IAjaxElement
WOComponent._EventLoggingEnabler, WOComponent.EventNSKeyValueCodingAdditions.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.ValueAccessorNSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException_Extension, _IsEventLoggingEnabled, _keyAssociations_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_CLASS| Constructor and Description |
|---|
AjaxComponent(WOContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
_containerID(WOContext context)
Returns the ID that represents this container for the purposes of Ajax updates.
|
protected abstract void |
addRequiredWebResources(WOResponse response)
Override this method to append the needed scripts for this component.
|
protected void |
addScriptResourceInHead(WOResponse _response,
String _fileName) |
protected void |
addScriptResourceInHead(WOResponse _response,
String _framework,
String _fileName) |
protected void |
addStylesheetResourceInHead(WOResponse _response,
String _fileName) |
protected void |
addStylesheetResourceInHead(WOResponse _response,
String _framework,
String _fileName) |
void |
appendTagAttributeToResponse(WOResponse response,
String name,
Object object) |
void |
appendToResponse(WOResponse response,
WOContext context)
Overridden to call
addRequiredWebResources(WOResponse). |
boolean |
booleanValueForBinding(String name,
boolean defaultValue)
Utility to get the boolean value of a binding or a default value if none is
supplied.
|
abstract WOActionResults |
handleRequest(WORequest request,
WOContext context)
Override this method to return the response for an Ajax request.
|
WOActionResults |
invokeAction(WORequest request,
WOContext context)
Execute the request, if it's coming from our action, then invoke the
ajax handler and put the key
AJAX_REQUEST_KEY in the
request userInfo dictionary (request.userInfo()). |
String |
safeElementID() |
protected boolean |
shouldHandleRequest(WORequest request,
WOContext context) |
Object |
valueForBinding(String name,
Object defaultValue)
Utility to get the value of a binding or a default value if none is
supplied.
|
Object |
valueForBinding(String name,
Object defaultValue,
WOComponent component) |
Object |
valueForBinding(String name,
WOComponent component) |
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNamepublic AjaxComponent(WOContext context)
public Object valueForBinding(String name, Object defaultValue)
name - name of the bindingdefaultValue - value to return if unboundpublic boolean booleanValueForBinding(String name, boolean defaultValue)
name - name of the bindingdefaultValue - value to return if unboundpublic Object valueForBinding(String name, WOComponent component)
valueForBinding in interface IAjaxElementpublic Object valueForBinding(String name, Object defaultValue, WOComponent component)
valueForBinding in interface IAjaxElementprotected void addScriptResourceInHead(WOResponse _response, String _fileName)
protected void addScriptResourceInHead(WOResponse _response, String _framework, String _fileName)
protected void addStylesheetResourceInHead(WOResponse _response, String _fileName)
protected void addStylesheetResourceInHead(WOResponse _response, String _framework, String _fileName)
public WOActionResults invokeAction(WORequest request, WOContext context)
AJAX_REQUEST_KEY in the
request userInfo dictionary (request.userInfo()).invokeAction in class WOComponentrequest - the requestcontext - context of the transactionprotected String _containerID(WOContext context)
context - the current contextpublic String safeElementID()
public void appendToResponse(WOResponse response, WOContext context)
addRequiredWebResources(WOResponse).appendToResponse in class WOComponentresponse - the HTTP response that an application returns to a Web server to complete a cycle of the request-response loopcontext - context of a transactionpublic void appendTagAttributeToResponse(WOResponse response, String name, Object object)
protected abstract void addRequiredWebResources(WOResponse response)
response - the response to write topublic abstract WOActionResults handleRequest(WORequest request, WOContext context)
handleRequest in interface IAjaxElementrequest - the requestcontext - the contextCopyright © 2002 – 2025 Project Wonder.