ERMSubmitLink Class Reference

Inherits er::extensions::components::ERXNonSynchronizingComponent.

Collaboration diagram for ERMSubmitLink:

Collaboration graph
[legend]

List of all members.

Public Member Functions

String additionalFunction ()
void appendToResponse (WOResponse response, WOContext context)
boolean dontSubmitForm ()
 ERMSubmitLink (WOContext context)
String fieldName ()
WOActionResults invokeAction (WORequest request, WOContext context)
String linkScript ()

Protected Attributes

String _additionalFunction

Private Attributes

String _fieldName
boolean _isInForm


Detailed Description

This component is a hyperlink that can submit a form and perform an action other than the form's default action. Similar to WOSubmitButton and WOImageButton. If this component is not located within a form, then it acts like a normal WOHyperlink.

Bindings: action (required): Action for link to perform string (optional): Text for link onClick (optional): Script for onClick of link class (optional): Name of CSS class for link disabled (optional): If true, no link is created fieldName (optional): Name of hidden field additionalFunction (optional): js function to call before submitting form name (optional): name of link

Component originally named: HWOSubmitLink

Author:
Greg Bartnick <gbartnick@hosts.com>
Version:
1.0; April 04, 2005
Modified:
Author:
davidleber

Constructor & Destructor Documentation

ERMSubmitLink ( WOContext  context  ) 


Member Function Documentation

String additionalFunction (  ) 

Returns:
String containing any additional js function to be executed before the form is submitted.

void appendToResponse ( WOResponse  response,
WOContext  context 
)

Calls resetCachedBindingsInStatefulComponent prior to super.appendToResponse.

Parameters:
response to which we are appending
context context of the response

Reimplemented from ERXNonSynchronizingComponent.

boolean dontSubmitForm (  ) 

String fieldName (  ) 

Returns:
String containing a name for the hidden field.

WOActionResults invokeAction ( WORequest  request,
WOContext  context 
)

Calls resetCachedBindingsInStatefulComponent prior to super.invokeAction.

Parameters:
request for which the action is invoked
context of the request
Returns:
the result of invoking the action

Reimplemented from ERXNonSynchronizingComponent.

String linkScript (  ) 

Returns:
String containing a script for hyperlink that gives a value to the hidden field and submits the form.


Member Data Documentation

String _fieldName [private]

boolean _isInForm [private]


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

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