public class AjaxUpdateContainer extends AjaxDynamicElement
Name | Description |
---|---|
onRefreshComplete | the script to execute at the end of refreshing the container |
action | the action to call when this updateContainer refreshes |
insertion | JavaScript function to evaluate when the update takes place (or effect shortcuts like "Effect.blind", or "Effect.BlindUp") |
insertionDuration | the duration of the before and after insertion animation (if using insertion) |
beforeInsertionDuration | the duration of the before insertion animation (if using insertion) |
afterInsertionDuration | the duration of the after insertion animation (if using insertion) |
asynchronous | set to false to force a synchronous refresh of the container. Defaults to true. |
optional | set to true if you want the container tags to be skipped if this is already in an update container (similar to ERXOptionalForm). If optional is true and there is a container, it's as if this AUC doesn't exist, and only its children will render to the page. |
frequency | the frequency (in seconds) of a periodic update |
decay | a multiplier (default is one) applied to the frequency if the response of the update is unchanged |
observeDescendentFields | observe descendent fields |
stopped | determines whether a periodic update container loads as stopped. |
ERXDynamicElement.ContextData<T>
log
_children
_ConstructorParameters
Constructor and Description |
---|
AjaxUpdateContainer(String name,
NSDictionary<String,WOAssociation> associations,
WOElement children) |
Modifier and Type | Method and Description |
---|---|
protected String |
_containerID(WOContext context)
Override this method and return an update container ID this element should react on.
|
protected void |
addRequiredWebResources(WOResponse response,
WOContext context)
Adds all required resources.
|
void |
appendToResponse(WOResponse response,
WOContext context)
Overridden to call
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext) . |
NSDictionary<String,String> |
createAjaxOptions(WOComponent component) |
NSMutableDictionary<String,String> |
createObserveFieldOptions(WOComponent component) |
static String |
currentUpdateContainerID() |
static String |
expandInsertion(String originalInsertion,
String beforeDuration,
String afterDuration) |
static void |
expandInsertionFromOptions(NSMutableDictionary<String,String> options,
IAjaxElement element,
WOComponent component) |
WOActionResults |
handleRequest(WORequest request,
WOContext context)
Override this method to return the response for an Ajax request.
|
static boolean |
hasUpdateContainerID(WORequest 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() ). |
static NSDictionary<String,String> |
removeDefaultOptions(NSDictionary<String,String> options) |
static void |
safeUpdateContainerWithID(String updateContainerID,
WOContext context)
Creates or updates Ajax response so that the indicated AUC will get updated when the response is processed in the browser.
|
static void |
setCurrentUpdateContainerID(String updateContainerID) |
static void |
setUpdateContainerID(WORequest request,
String updateContainerID) |
protected boolean |
shouldRenderContainer(WOComponent component) |
void |
takeValuesFromRequest(WORequest request,
WOContext context) |
static String |
updateContainerID(AjaxDynamicElement element,
String bindingName,
WOComponent component) |
static String |
updateContainerID(AjaxDynamicElement element,
WOComponent component) |
static String |
updateContainerID(String updateContainerID) |
static String |
updateContainerID(WORequest request) |
static void |
updateContainerWithID(String updateContainerID,
WOContext context)
Creates or updates Ajax response so that the indicated AUC will get updated when the response is processed in the browser.
|
addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, shouldHandleRequest
afterProcessing, appendTagAttributeToResponse, arrayValueForBinding, arrayValueForBinding, associations, beforeProcessing, bindingIsSettable, bindingNamed, booleanValueForBinding, booleanValueForBinding, hasBinding, id, integerValueForBinding, nameInContext, secureInContext, setValueForBinding, stringValueForBinding, stringValueForBinding, valueForBinding, valueForBinding
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
valueForBinding, valueForBinding
public AjaxUpdateContainer(String name, NSDictionary<String,WOAssociation> associations, WOElement children)
protected void addRequiredWebResources(WOResponse response, WOContext context)
addRequiredWebResources
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionprotected boolean shouldRenderContainer(WOComponent component)
public void takeValuesFromRequest(WORequest request, WOContext context)
takeValuesFromRequest
in class com.webobjects.appserver._private.WODynamicGroup
public WOActionResults invokeAction(WORequest request, WOContext context)
AjaxDynamicElement
AJAX_REQUEST_KEY
in the request userInfo dictionary (request.userInfo()
).invokeAction
in class AjaxDynamicElement
request
- the current requestcontext
- context of the transactionpublic NSDictionary<String,String> createAjaxOptions(WOComponent component)
public static void expandInsertionFromOptions(NSMutableDictionary<String,String> options, IAjaxElement element, WOComponent component)
public static String expandInsertion(String originalInsertion, String beforeDuration, String afterDuration)
public static NSDictionary<String,String> removeDefaultOptions(NSDictionary<String,String> options)
public NSMutableDictionary<String,String> createObserveFieldOptions(WOComponent component)
public void appendToResponse(WOResponse response, WOContext context)
AjaxDynamicElement
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext)
.appendToResponse
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionpublic WOActionResults handleRequest(WORequest request, WOContext context)
AjaxDynamicElement
handleRequest
in interface IAjaxElement
handleRequest
in class AjaxDynamicElement
request
- the current requestcontext
- context of the transactionprotected String _containerID(WOContext context)
AjaxDynamicElement
_containerID
in class AjaxDynamicElement
context
- context of the transactionnull
public static void setUpdateContainerID(WORequest request, String updateContainerID)
public static boolean hasUpdateContainerID(WORequest request)
public static String currentUpdateContainerID()
public static void setCurrentUpdateContainerID(String updateContainerID)
public static String updateContainerID(AjaxDynamicElement element, WOComponent component)
public static String updateContainerID(AjaxDynamicElement element, String bindingName, WOComponent component)
public static void updateContainerWithID(String updateContainerID, WOContext context)
AUC.update('SomeContainerID');
updateContainerID
- the HTML ID of the element implementing the AUCcontext
- WOContext for responsepublic static void safeUpdateContainerWithID(String updateContainerID, WOContext context)
if ( $('SomeContainerID') != null ) AUC.update('SomeContainerID');
updateContainerID
- the HTML ID of the element implementing the AUCcontext
- WOContext for responseCopyright © 2002 – 2024 Project Wonder.