public class MTAjaxSubmitButton extends AjaxDynamicElement
| Name | Description |
|---|---|
name | the HTML name of this submit button (optional) |
value | the HTML value of this submit button (optional) |
action | the action to execute when this button is pressed |
id | the HTML ID of this submit button |
class | the HTML class of this submit button |
style | the HTML style of this submit button |
title | the HTML title of this submit button |
onClick | arbitrary Javascript to execute when the client clicks the button |
onClickBefore | if the given function returns true, the onClick is executed. This is to support confirm(..) dialogs. |
onClickServer | if the action defined in the action binding returns null, the value of this binding will be returned as javascript from the server |
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. |
evalScripts | evaluate scripts on the result |
button | if false, it will display a link |
formName | if button is false, you must specify the name of the form to submit |
functionName | if set, the link becomes a javascript function instead |
updateContainerID | the id of the AjaxUpdateContainer to update after performing this action |
showUI | if functionName is set, the UI defaults to hidden; showUI re-enables it |
formSerializer | the name of the javascript function to call to serialize the form |
elementName | the element name to use (defaults to "a") |
async | boolean defining if the request is sent asynchronously or synchronously, defaults to true |
accesskey | hot key that should trigger the button (optional) |
disabled | if true, the button will be disabled (defaults to false) |
| Name | Description |
|---|---|
er.ajax.formSerializer | the default form serializer to use for all ajax submits |
ERXDynamicElement.ContextData<T>| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_AJAX_SUBMIT_BUTTON_NAME |
static String |
KEY_PARTIAL_FORM_SENDER_ID |
log| Constructor and Description |
|---|
MTAjaxSubmitButton(String name,
NSDictionary<String,com.webobjects.appserver.WOAssociation> associations,
com.webobjects.appserver.WOElement children) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequiredWebResources(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Override this method to append the needed scripts for this component.
|
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Overridden to call
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext). |
NSMutableDictionary |
createAjaxOptions(com.webobjects.appserver.WOComponent component) |
boolean |
disabledInComponent(com.webobjects.appserver.WOComponent component) |
static void |
fillInAjaxOptions(IAjaxElement element,
com.webobjects.appserver.WOComponent component,
String submitButtonName,
NSMutableDictionary options) |
com.webobjects.appserver.WOActionResults |
handleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
Override this method to return the response for an Ajax request.
|
com.webobjects.appserver.WOActionResults |
invokeAction(com.webobjects.appserver.WORequest worequest,
com.webobjects.appserver.WOContext wocontext)
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 boolean |
isAjaxSubmit(com.webobjects.appserver.WORequest request) |
String |
nameInContext(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOComponent component) |
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, 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 static final String KEY_AJAX_SUBMIT_BUTTON_NAME
public static final String KEY_PARTIAL_FORM_SENDER_ID
public MTAjaxSubmitButton(String name, NSDictionary<String,com.webobjects.appserver.WOAssociation> associations, com.webobjects.appserver.WOElement children)
public static boolean isAjaxSubmit(com.webobjects.appserver.WORequest request)
public boolean disabledInComponent(com.webobjects.appserver.WOComponent component)
public String nameInContext(com.webobjects.appserver.WOContext context, com.webobjects.appserver.WOComponent component)
public NSMutableDictionary createAjaxOptions(com.webobjects.appserver.WOComponent component)
public void addRequiredWebResources(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
AjaxDynamicElementaddRequiredWebResources in class AjaxDynamicElementresponse - the current responsecontext - context of the transactionpublic void appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
AjaxDynamicElementAjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext).appendToResponse in class AjaxDynamicElementresponse - the current responsecontext - context of the transactionpublic static void fillInAjaxOptions(IAjaxElement element, com.webobjects.appserver.WOComponent component, String submitButtonName, NSMutableDictionary options)
public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest worequest,
com.webobjects.appserver.WOContext wocontext)
AjaxDynamicElementAJAX_REQUEST_KEY in the request userInfo dictionary (request.userInfo()).invokeAction in class AjaxDynamicElementworequest - the current requestwocontext - context of the transactionpublic com.webobjects.appserver.WOActionResults handleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
AjaxDynamicElementhandleRequest in interface IAjaxElementhandleRequest in class AjaxDynamicElementrequest - the current requestcontext - context of the transactionCopyright © 2002 – 2020 Project Wonder.