|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
er.ajax.AjaxDynamicElement
er.ajax.AjaxSubmitButton
public class AjaxSubmitButton
AjaxSubmitButton behaves just like a WOSubmitButton except that it submits in the background with an Ajax.Request.
Bindings | |
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 |
onComplete | JavaScript function to evaluate when the request has finished. |
onSuccess | javascript to execute in response to the Ajax onSuccess event |
onFailure | javascript to execute in response to the Ajax onFailure event |
onLoading | javascript to execute when loading |
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 |
replaceID | the ID of the div (or other html element) whose contents will be replaced with the results of 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") |
asynchronous | 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)
// PROTOTYPE EFFECTS |
effect | synonym of afterEffect except it always applies to updateContainerID |
effectDuration | synonym of afterEffectDuration except it always applies to updateContainerID
// PROTOTYPE EFFECTS |
beforeEffect | the Scriptaculous effect to apply onSuccess ("highlight", "slideIn", "blindDown", etc); |
beforeEffectID | the ID of the container to apply the "before" effect to (blank = try nearest container, then try updateContainerID) |
beforeEffectDuration | the duration of the effect to apply before
// PROTOTYPE EFFECTS |
afterEffect | the Scriptaculous effect to apply onSuccess ("highlight", "slideIn", "blindDown", etc); |
afterEffectID | the ID of the container to apply the "after" effect to (blank = try nearest container, then try updateContainerID) |
afterEffectDuration | the duration of the effect to apply after
// PROTOTYPE EFFECTS |
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) |
Properties | |
er.ajax.formSerializer | the default form serializer to use for all ajax submits |
er.extensions.foundation.ERXPatcher.DynamicElementsPatches.SubmitButton.useButtonTag | er.extensions.foundation.ERXPatcher.DynamicElementsPatches.SubmitButton.useButtonTag |
Field Summary | |
---|---|
static java.lang.String |
KEY_AJAX_SUBMIT_BUTTON_NAME
|
static java.lang.String |
KEY_PARTIAL_FORM_SENDER_ID
|
Fields inherited from class er.ajax.AjaxDynamicElement |
---|
log |
Fields inherited from class com.webobjects.appserver.WODynamicElement |
---|
_ConstructorParameters |
Constructor Summary | |
---|---|
AjaxSubmitButton(java.lang.String name,
com.webobjects.foundation.NSDictionary associations,
com.webobjects.appserver.WOElement children)
|
Method Summary | |
---|---|
protected void |
addRequiredWebResources(com.webobjects.appserver.WOResponse res,
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) . |
com.webobjects.foundation.NSMutableDictionary |
createAjaxOptions(com.webobjects.appserver.WOComponent component)
|
boolean |
disabledInComponent(com.webobjects.appserver.WOComponent component)
|
static void |
fillInAjaxOptions(IAjaxElement element,
com.webobjects.appserver.WOComponent component,
java.lang.String submitButtonName,
com.webobjects.foundation.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 comming 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)
|
java.lang.String |
nameInContext(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOComponent component)
|
Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
---|
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEY_AJAX_SUBMIT_BUTTON_NAME
public static final java.lang.String KEY_PARTIAL_FORM_SENDER_ID
Constructor Detail |
---|
public AjaxSubmitButton(java.lang.String name, com.webobjects.foundation.NSDictionary associations, com.webobjects.appserver.WOElement children)
Method Detail |
---|
public static boolean isAjaxSubmit(com.webobjects.appserver.WORequest request)
public boolean disabledInComponent(com.webobjects.appserver.WOComponent component)
public java.lang.String nameInContext(com.webobjects.appserver.WOContext context, com.webobjects.appserver.WOComponent component)
public com.webobjects.foundation.NSMutableDictionary createAjaxOptions(com.webobjects.appserver.WOComponent component)
public static void fillInAjaxOptions(IAjaxElement element, com.webobjects.appserver.WOComponent component, java.lang.String submitButtonName, com.webobjects.foundation.NSMutableDictionary options)
public void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
AjaxDynamicElement
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext)
.
appendToResponse
in class AjaxDynamicElement
protected void addRequiredWebResources(com.webobjects.appserver.WOResponse res, com.webobjects.appserver.WOContext context)
AjaxDynamicElement
addRequiredWebResources
in class AjaxDynamicElement
public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest worequest, com.webobjects.appserver.WOContext wocontext)
AjaxDynamicElement
AJAX_REQUEST_KEY
in the request userInfo dictionary (request.userInfo()
).
invokeAction
in class AjaxDynamicElement
public com.webobjects.appserver.WOActionResults handleRequest(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
AjaxDynamicElement
handleRequest
in interface IAjaxElement
handleRequest
in class AjaxDynamicElement
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |