org.apache.cocoon.forms.formmodel
Class SubmitDefinitionBuilder
java.lang.Object
org.apache.cocoon.forms.formmodel.AbstractWidgetDefinitionBuilder
org.apache.cocoon.forms.formmodel.ActionDefinitionBuilder
org.apache.cocoon.forms.formmodel.SubmitDefinitionBuilder
- All Implemented Interfaces:
- Disposable, Serviceable, WidgetDefinitionBuilder
public final class SubmitDefinitionBuilder
- extends ActionDefinitionBuilder
Builds a <fd:submit>
widget. A submit is an action that
terminates the current form. It can either require the form to be valid
(in which case it will be redisplayed if not valid) or terminate it without
validation (e.g. a "cancel" button).
The syntax is as follows:
<wd:submit id="sub-id" command="cmd" validate="false"/>
The "validate" attribute can have the value true
or
false
and determines if the form is to be validated
(defaults to true).
- Version:
- $Id: SubmitDefinitionBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubmitDefinitionBuilder
public SubmitDefinitionBuilder()
buildWidgetDefinition
public WidgetDefinition buildWidgetDefinition(Element widgetElement,
WidgetDefinitionBuilderContext context)
throws Exception
- Specified by:
buildWidgetDefinition
in interface WidgetDefinitionBuilder
- Overrides:
buildWidgetDefinition
in class ActionDefinitionBuilder
- Throws:
Exception
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.