Project Wonder 5.0

er.ajax
Class AjaxDefaultSubmitButton

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by com.webobjects.appserver._private.WODynamicGroup
              extended by er.ajax.AjaxDynamicElement
                  extended by er.ajax.AjaxSubmitButton
                      extended by er.ajax.AjaxDefaultSubmitButton
All Implemented Interfaces:
IAjaxElement

public class AjaxDefaultSubmitButton
extends AjaxSubmitButton

Invisible form submit button that can be included as the first element in an Ajax submitted form so that hitting enter performs the action bound to this button.

Author:
Chuck (with heavy theft from Anjo's AjaxSubmitButton)
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
           
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.
           
onServerClick 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
           
updateContainerID the id of the AjaxUpdateContainer to update after performing this action
           
formSerializer the name of the javascript function to call to serialize the form
           
asynchronous boolean defining if the request is sent asynchronously or synchronously, defaults to true // 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
           

Field Summary
 
Fields inherited from class er.ajax.AjaxSubmitButton
KEY_AJAX_SUBMIT_BUTTON_NAME, KEY_PARTIAL_FORM_SENDER_ID
 
Fields inherited from class er.ajax.AjaxDynamicElement
log
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
AjaxDefaultSubmitButton(java.lang.String name, com.webobjects.foundation.NSDictionary associations, com.webobjects.appserver.WOElement children)
           
 
Method Summary
 void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
          Overridden to call AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext).
 
Methods inherited from class er.ajax.AjaxSubmitButton
addRequiredWebResources, createAjaxOptions, disabledInComponent, fillInAjaxOptions, handleRequest, invokeAction, isAjaxSubmit, nameInContext
 
Methods inherited from class er.ajax.AjaxDynamicElement
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, associations, bindingNamed, booleanValueForBinding, hasBinding, setValueForBinding, shouldHandleRequest, stringValueForBinding, takeValuesFromRequest, valueForBinding, valueForBinding
 
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
 

Constructor Detail

AjaxDefaultSubmitButton

public AjaxDefaultSubmitButton(java.lang.String name,
                               com.webobjects.foundation.NSDictionary associations,
                               com.webobjects.appserver.WOElement children)
Method Detail

appendToResponse

public void appendToResponse(com.webobjects.appserver.WOResponse response,
                             com.webobjects.appserver.WOContext context)
Description copied from class: AjaxDynamicElement
Overridden to call AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext).

Overrides:
appendToResponse in class AjaxSubmitButton

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.