org.apache.wicket.markup.html.form
Interface IFormSubmittingComponent
- All Known Implementing Classes:
- AbstractSubmitLink, AjaxButton, AjaxFallbackButton, AjaxSubmitLink, Button, CancelButton, FinishButton, ImageButton, IndicatingAjaxButton, LastButton, NextButton, PreviousButton, SubmitLink, WizardButton
public interface IFormSubmittingComponent
Interface that must be implemented by components that are able to submit form.
- Author:
- Matej Knopp
Method Summary |
boolean |
getDefaultFormProcessing()
Returns whether form should be processed the default way. |
Form<?> |
getForm()
Returns the form this component submits. |
java.lang.String |
getInputName()
Returns the name that is unique to this component, at least within the form. |
void |
onSubmit()
Override this method to provide special submit handling in a multi-button form. |
Component |
setDefaultFormProcessing(boolean defaultFormProcessing)
Sets the defaultFormProcessing property. |
getDefaultFormProcessing
boolean getDefaultFormProcessing()
- Returns whether form should be processed the default way. When false (default is true), all
validation and form updating is bypassed and the onSubmit method of that button is called
directly, and the onSubmit method of the parent form is not called. A common use for this is
to create a cancel button.
- Returns:
- defaultFormProcessing
setDefaultFormProcessing
Component setDefaultFormProcessing(boolean defaultFormProcessing)
- Sets the defaultFormProcessing property. When false (default is true), all validation and
form updating is bypassed and the onSubmit method of that button is called directly, and the
onSubmit method of the parent form is not called. A common use for this is to create a cancel
button.
- Parameters:
defaultFormProcessing
-
- Returns:
this
component
getForm
Form<?> getForm()
- Returns the form this component submits.
- Returns:
- form submitted by this component
getInputName
java.lang.String getInputName()
- Returns the name that is unique to this component, at least within the form.
- Returns:
- component name
onSubmit
void onSubmit()
- Override this method to provide special submit handling in a multi-button form. It is called
whenever the user clicks this particular button.
Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.