Project Wonder 5.0

er.extensions.components.javascript
Class ERXJSSubmitFunction

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by er.extensions.components.javascript.ERXJSSubmitFunction

public class ERXJSSubmitFunction
extends com.webobjects.appserver.WODynamicElement

ERXJSSubmitFunction generates a javascript method that can submit a particular form and trigger the call of a component action. This allows more flexibility for submitting forms. For instance, if you set the functionName to "submitForm" and action set to processAction, you could have a WOPopupButton with the following binding: onChange = "submitForm();"; Which will cause the form to submit when the popup button changes and call the action specified in the ERXJSSubmitFunction (in this example, processAction).

Author:
mschrag
Bindings
action the action to call when the javascript function is called and the form is submitted
           
formName the name of the form to submit (right now you must set the name properly on the desired form)
           
functionName the name of the javascript function that executes the submit
           
name the name of the hidden field that identifies which action is to be executed
           

Field Summary
protected  com.webobjects.appserver.WOAssociation _action
           
protected  com.webobjects.appserver.WOAssociation _disabled
           
protected  com.webobjects.appserver.WOAssociation _formName
           
protected  com.webobjects.appserver.WOAssociation _functionName
           
protected  com.webobjects.appserver.WOAssociation _name
           
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
ERXJSSubmitFunction(java.lang.String elementName, com.webobjects.foundation.NSDictionary associations, com.webobjects.appserver.WOElement woelement)
           
 
Method Summary
 void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
           
 boolean disabledInComponent(com.webobjects.appserver.WOComponent component)
           
 com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
           
protected  java.lang.String nameInContext(com.webobjects.appserver.WOContext context, com.webobjects.appserver.WOComponent component)
           
 void takeValuesFromRequest(com.webobjects.appserver.WORequest worequest, com.webobjects.appserver.WOContext wocontext)
           
 
Methods inherited from class com.webobjects.appserver.WODynamicElement
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_action

protected com.webobjects.appserver.WOAssociation _action

_name

protected com.webobjects.appserver.WOAssociation _name

_functionName

protected com.webobjects.appserver.WOAssociation _functionName

_disabled

protected com.webobjects.appserver.WOAssociation _disabled

_formName

protected com.webobjects.appserver.WOAssociation _formName
Constructor Detail

ERXJSSubmitFunction

public ERXJSSubmitFunction(java.lang.String elementName,
                           com.webobjects.foundation.NSDictionary associations,
                           com.webobjects.appserver.WOElement woelement)
Method Detail

takeValuesFromRequest

public void takeValuesFromRequest(com.webobjects.appserver.WORequest worequest,
                                  com.webobjects.appserver.WOContext wocontext)
Overrides:
takeValuesFromRequest in class com.webobjects.appserver.WOElement

nameInContext

protected java.lang.String nameInContext(com.webobjects.appserver.WOContext context,
                                         com.webobjects.appserver.WOComponent component)

disabledInComponent

public boolean disabledInComponent(com.webobjects.appserver.WOComponent component)

invokeAction

public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest request,
                                                             com.webobjects.appserver.WOContext context)
Overrides:
invokeAction in class com.webobjects.appserver.WOElement

appendToResponse

public void appendToResponse(com.webobjects.appserver.WOResponse response,
                             com.webobjects.appserver.WOContext context)
Overrides:
appendToResponse in class com.webobjects.appserver.WOElement

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

Copyright © 2002 – 2007 Project Wonder.