ERXJSSubmitFunction Class Reference

Inherits com::webobjects::appserver::WODynamicElement.

Collaboration diagram for ERXJSSubmitFunction:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void appendToResponse (WOResponse response, WOContext context)
boolean disabledInComponent (WOComponent component)
 ERXJSSubmitFunction (String elementName, NSDictionary associations, WOElement woelement)
WOActionResults invokeAction (WORequest request, WOContext context)
void takeValuesFromRequest (WORequest worequest, WOContext wocontext)

Protected Member Functions

String nameInContext (WOContext context, WOComponent component)

Protected Attributes

WOAssociation _action
WOAssociation _disabled
WOAssociation _formName
WOAssociation _functionName
WOAssociation _name


Detailed Description

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).

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

Author:
mschrag

Constructor & Destructor Documentation

ERXJSSubmitFunction ( String  elementName,
NSDictionary  associations,
WOElement  woelement 
)


Member Function Documentation

void appendToResponse ( WOResponse  response,
WOContext  context 
)

boolean disabledInComponent ( WOComponent  component  ) 

WOActionResults invokeAction ( WORequest  request,
WOContext  context 
)

String nameInContext ( WOContext  context,
WOComponent  component 
) [protected]

void takeValuesFromRequest ( WORequest  worequest,
WOContext  wocontext 
)


Member Data Documentation

WOAssociation _action [protected]

WOAssociation _disabled [protected]

WOAssociation _formName [protected]

WOAssociation _functionName [protected]

WOAssociation _name [protected]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:07 2012 for Project Wonder by  doxygen 1.5.8