org.apache.cocoon.forms.formmodel
Class Submit
java.lang.Object
org.apache.cocoon.forms.formmodel.AbstractWidget
org.apache.cocoon.forms.formmodel.Action
org.apache.cocoon.forms.formmodel.Submit
- All Implemented Interfaces:
- ActionListenerEnabled, Widget, Locatable
public class Submit
- extends Action
A submit is an action that exits of the current form.
- Version:
- $Id: Submit.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- See Also:
SubmitDefinitionBuilder
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 |
Submit
public Submit(ActionDefinition definition,
boolean validateForm)
getXMLElementAttributes
public 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-2010 The Apache Software Foundation. All Rights Reserved.