org.apache.cocoon.forms.formmodel
Class Submit

java.lang.Object
  extended byorg.apache.cocoon.forms.formmodel.AbstractWidget
      extended byorg.apache.cocoon.forms.formmodel.Action
          extended byorg.apache.cocoon.forms.formmodel.Submit
All Implemented Interfaces:
ActionListenerEnabled, org.apache.cocoon.util.location.Locatable, Widget

public class Submit
extends Action

A submit is an action that exits of the current form.

Version:
$Id: Submit.html 1304280 2012-03-23 11:18:01Z ilgrosso $
See Also:
SubmitDefinitionBuilder

Field Summary
 
Fields inherited from class org.apache.cocoon.forms.formmodel.AbstractWidget
wasValid
 
Fields inherited from interface org.apache.cocoon.forms.formmodel.Widget
PATH_SEPARATOR
 
Constructor Summary
Submit(ActionDefinition definition, boolean validateForm)
           
 
Method Summary
 org.apache.cocoon.xml.AttributesImpl getXMLElementAttributes()
          The XML attributes used in AbstractWidget.generateSaxFragment(ContentHandler, Locale) to be placed on the wrapping element for all the XML-instance-content of this Widget.
protected  void handleActivate()
          Handle the fact that this action was activated.
 
Methods inherited from class org.apache.cocoon.forms.formmodel.Action
addActionListener, broadcastEvent, getDefinition, getXMLElementName, isValid, performAction, readFromRequest, removeActionListener, validate
 
Methods inherited from class org.apache.cocoon.forms.formmodel.AbstractWidget
addValidator, generateDisplayData, generateItemSaxFragment, generateLabel, generateSaxFragment, getAttribute, getChild, getCombinedState, getForm, getFullName, getId, getLocation, getName, getParent, getRequestParameterName, getState, getValue, getWidget, initialize, isRequired, lookupWidget, removeAttribute, removeValidator, setAttribute, setParent, setState, setValue, toString, widgetNameChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Submit

public Submit(ActionDefinition definition,
              boolean validateForm)
Method Detail

getXMLElementAttributes

public org.apache.cocoon.xml.AttributesImpl getXMLElementAttributes()
Description copied from class: AbstractWidget
The XML attributes used in AbstractWidget.generateSaxFragment(ContentHandler, Locale) to be placed on the wrapping element for all the XML-instance-content of this Widget. This automatically adds @id=AbstractWidget.getRequestParameterName() to that element. Concrete subclasses should call super.getXMLElementAttributes and possibly add additional attributes. Note: the @id is not added for those widgets who's getId() returns null (e.g. top-level container widgets like 'form'). The contract of returning a non-null AttributesImpl is however maintained.

Overrides:
getXMLElementAttributes in class AbstractWidget
Returns:
the attributes for the main element for this widget's sax-fragment.
See Also:
AbstractWidget.getXMLElementAttributes()

handleActivate

protected void handleActivate()
Description copied from class: Action
Handle the fact that this action was activated. The default here is to perform any action associated to this object, end the current form processing and redisplay the form.

Overrides:
handleActivate in class Action
See Also:
Action.performAction()


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.