public class MTAjaxUpdateLink extends AjaxUpdateLink
| Bindings | |
action | the action to call when the link executes |
directActionName | the direct action to call when link executes |
updateContainerID | the id of the AjaxUpdateContainer to update after performing this action |
title | title of the link |
style | css style of the link |
class | css class of the link |
id | of the link |
disabled | boolean defining if the link renders the tag |
string | string to get preprended to the contained elements |
function | a custom function to call that takes a single parameter that is the action url |
elementName | the element name to use (defaults to "a") |
functionName | if set, the link becomes a javascript function |
button | if true, this is rendered as a javascript button |
async | boolean defining if the update request is sent asynchronously or synchronously, defaults to true |
accesskey | hot key that should trigger the link (optional) |
onCancel | Fired when a request has been cancelled. |
onClickBefore | if the given function returns true, the onClick is executed. This is to support confirm(..) dialogs. |
onClick | JS function, called after the click on the client |
onComplete | Fired when the Request is completed. |
onException | Fired when setting a request header fails. |
onFailure | Fired when the request failed (error status code). |
onRequest | Fired when the Request is sent. |
onSuccess(responseTree, | responseElements, responseHTML, responseJavaScript) Fired when the Request is completed successfully. |
useSpinner | (boolean) use the Spinner class with this request |
defaultSpinnerClass | inclue the default spinner css class in the headers - if false provide your own. |
spinnerOptions | - (object) the options object for the Spinner class |
spinnerTarget | - (mixed) a string of the id for an Element or an Element reference to use instead of the one specifed in the update option. This is useful if you want to overlay a different area (or, say, the parent of the one being updated). |
ERXDynamicElement.ContextData<T>log_children_ConstructorParameters| Constructor and Description |
|---|
MTAjaxUpdateLink(java.lang.String name,
NSDictionary<java.lang.String,WOAssociation> associations,
WOElement children) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addEffect(NSMutableDictionary options,
java.lang.String effect,
java.lang.String updateContainerID,
java.lang.String effectProperty,
java.lang.String effectStart,
java.lang.String duration,
java.lang.String mode) |
void |
addRequiredWebResources(WOResponse response,
WOContext context)
Override this method to append the needed scripts for this component.
|
protected NSMutableDictionary<java.lang.String,java.lang.Object> |
createAjaxOptions(WOComponent component) |
java.lang.String |
onClick(WOContext context,
boolean generateFunctionWrapper) |
addEffect, appendToResponse, fullEffectName, handleRequest_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, invokeAction, shouldHandleRequestafterProcessing, appendTagAttributeToResponse, arrayValueForBinding, arrayValueForBinding, associations, beforeProcessing, bindingIsSettable, bindingNamed, booleanValueForBinding, booleanValueForBinding, hasBinding, id, integerValueForBinding, nameInContext, secureInContext, setValueForBinding, stringValueForBinding, stringValueForBinding, valueForBinding, valueForBindingaddChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, takeValuesFromRequest, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitvalueForBinding, valueForBindingpublic MTAjaxUpdateLink(java.lang.String name,
NSDictionary<java.lang.String,WOAssociation> associations,
WOElement children)
protected NSMutableDictionary<java.lang.String,java.lang.Object> createAjaxOptions(WOComponent component)
createAjaxOptions in class AjaxUpdateLinkpublic void addRequiredWebResources(WOResponse response, WOContext context)
AjaxDynamicElementaddRequiredWebResources in class AjaxUpdateLinkresponse - the current responsecontext - context of the transactionpublic java.lang.String onClick(WOContext context, boolean generateFunctionWrapper)
onClick in class AjaxUpdateLinkpublic static void addEffect(NSMutableDictionary options, java.lang.String effect, java.lang.String updateContainerID, java.lang.String effectProperty, java.lang.String effectStart, java.lang.String duration, java.lang.String mode)
Copyright © 2002 – 2022 Project Wonder.