er.ajax
Class AjaxPingUpdate
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.ajax.AjaxPingUpdate
- All Implemented Interfaces:
- WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable
public class AjaxPingUpdate
- extends WOComponent
AjaxPingUpdate is primarily for use inside of an AjaxPing tag to support
ping-updating multiple containers from a single AjaxPing request. Just
like AjaxPing, you provide a cache key that upon changing, triggers the
update of another target AjaxUpdateContainer.
- Author:
- mschrag
- See Also:
- Serialized Form
| Bindings |
targetContainerID | the ID of the update container to refresh when a change is detected |
cacheKey | some hash value that represents the state of the target container |
onBeforeUpdate | (optional) the javascript function to call before updating (should return true if the update
should happen, false if not) |
| Methods inherited from class com.webobjects.appserver.WOComponent |
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, appendToResponse, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding |
AjaxPingUpdate
public AjaxPingUpdate(WOContext context)
synchronizesVariablesWithBindings
public boolean synchronizesVariablesWithBindings()
- Overrides:
synchronizesVariablesWithBindings in class WOComponent
refreshTarget
public boolean refreshTarget()
- Returns whether or not the target should be refreshed.
- Returns:
- whether or not the target should be refreshed
sleep
public void sleep()
- Overrides:
sleep in class WOComponent
targetContainerID
public String targetContainerID()
- Returns the target container ID.
- Returns:
- the target container ID
Copyright © 2002 – 2007 Project Wonder.