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
_children
_ConstructorParameters
Constructor and Description |
---|
MTAjaxSubmitButton(String name,
NSDictionary<String,WOAssociation> associations,
WOElement children) |
Modifier and Type | Method and Description |
---|---|
void |
addRequiredWebResources(WOResponse response,
WOContext context)
Override this method to append the needed scripts for this component.
|
void |
appendToResponse(WOResponse response,
WOContext context)
Overridden to call
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext) . |
NSMutableDictionary |
createAjaxOptions(WOComponent component) |
boolean |
disabledInComponent(WOComponent component) |
static void |
fillInAjaxOptions(IAjaxElement element,
WOComponent component,
String submitButtonName,
NSMutableDictionary options) |
WOActionResults |
handleRequest(WORequest request,
WOContext context)
Override this method to return the response for an Ajax request.
|
WOActionResults |
invokeAction(WORequest worequest,
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(WORequest request) |
String |
nameInContext(WOContext context,
WOComponent component) |
_containerID, 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, takeValuesFromRequest, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
valueForBinding, valueForBinding
public static final String KEY_AJAX_SUBMIT_BUTTON_NAME
public static final String KEY_PARTIAL_FORM_SENDER_ID
public MTAjaxSubmitButton(String name, NSDictionary<String,WOAssociation> associations, WOElement children)
public static boolean isAjaxSubmit(WORequest request)
public boolean disabledInComponent(WOComponent component)
public String nameInContext(WOContext context, WOComponent component)
public NSMutableDictionary createAjaxOptions(WOComponent component)
public void addRequiredWebResources(WOResponse response, WOContext context)
AjaxDynamicElement
addRequiredWebResources
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionpublic void appendToResponse(WOResponse response, WOContext context)
AjaxDynamicElement
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext)
.appendToResponse
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionpublic static void fillInAjaxOptions(IAjaxElement element, WOComponent component, String submitButtonName, NSMutableDictionary options)
public WOActionResults invokeAction(WORequest worequest, WOContext wocontext)
AjaxDynamicElement
AJAX_REQUEST_KEY
in the request userInfo dictionary (request.userInfo()
).invokeAction
in class AjaxDynamicElement
worequest
- the current requestwocontext
- 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 transactionCopyright © 2002 – 2024 Project Wonder.