Project Wonder 5.0

er.ajax
Class AjaxFunctionButton

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by com.webobjects.appserver._private.WODynamicGroup
              extended by com.webobjects.appserver._private.WOHTMLDynamicElement
                  extended by er.ajax.AjaxFunctionButton

public class AjaxFunctionButton
extends com.webobjects.appserver._private.WOHTMLDynamicElement

AjaxFunctionButton is a convenience for calling javascript functions in response to an onclick on a button. When the link is inside of an AjaxUpdateContainer, you do not need to specify the ID of the container. So for instance, if you are inside of an AjaxInPlace with the id "blogForm" you can do

 &lt:wo:AjaxFunctionButton action = "edit">
 
to go into edit mode.

Author:
mschrag
Bindings
disabled if true, the button is disabled
           
onclick the javascript to execute when the button is clicked.
           
action the type of event to fire ("update", "save", "edit", "cancel")
           
updateContainerID the id of the container to fire the event to (optional if inside of the container)
           
value the text of the button
           

Field Summary
 
Fields inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_associations, _constantAttributesRepresentation, _dyneltName, _finishedInitialization
 
Fields inherited from class com.webobjects.appserver._private.WODynamicGroup
_children
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
AjaxFunctionButton(java.lang.String aName, com.webobjects.foundation.NSDictionary associations, com.webobjects.appserver.WOElement template)
           
 
Method Summary
 void appendAttributesToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
           
protected static com.webobjects.foundation.NSDictionary processAssociations(com.webobjects.foundation.NSDictionary associations)
           
 
Methods inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_appendAttributesFromAssociationsToResponse, _appendCloseTagToResponse, _appendOpenTagToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendNonURLAttributesToResponse, appendToResponse, appendURLAttributesToResponse, computeActionStringInContext, computeQueryDictionaryInContext, constantAttributesRepresentation, elementName, escapeHTML, nonUrlAttributeAssociations, toString, urlAttributeAssociations
 
Methods inherited from class com.webobjects.appserver._private.WODynamicGroup
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeAction, invokeChildrenAction, takeChildrenValuesFromRequest, takeValuesFromRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AjaxFunctionButton

public AjaxFunctionButton(java.lang.String aName,
                          com.webobjects.foundation.NSDictionary associations,
                          com.webobjects.appserver.WOElement template)
Method Detail

appendAttributesToResponse

public void appendAttributesToResponse(com.webobjects.appserver.WOResponse response,
                                       com.webobjects.appserver.WOContext context)
Overrides:
appendAttributesToResponse in class com.webobjects.appserver._private.WOHTMLDynamicElement

processAssociations

protected static com.webobjects.foundation.NSDictionary processAssociations(com.webobjects.foundation.NSDictionary associations)

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

Copyright © 2002 – 2007 Project Wonder.