Package org.apache.wicket.ajax.form
Class AjaxFormSubmitBehavior.AjaxFormSubmitter
- java.lang.Object
-
- org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.AjaxFormSubmitter
-
- All Implemented Interfaces:
IFormSubmitter
- Enclosing class:
- AjaxFormSubmitBehavior
public static class AjaxFormSubmitBehavior.AjaxFormSubmitter extends java.lang.Object implements IFormSubmitter
A publicly reachable class that allows to introspect the submitter, e.g. to check what is the input name of the submitting component if there is such.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetDefaultFormProcessing()Returns whether form should be processed the default way.Form<?>getForm()Returns the form this component submits.IFormSubmittingComponentgetFormSubmittingComponent()voidonAfterSubmit()Override this method to provide special submit handling in a multi-button form.voidonError()Method that is invoked when form processing fails; for example, when there are validation errors.voidonSubmit()Override this method to provide special submit handling in a multi-button form.
-
-
-
Method Detail
-
getForm
public Form<?> getForm()
Description copied from interface:IFormSubmitterReturns the form this component submits.- Specified by:
getFormin interfaceIFormSubmitter- Returns:
- form submitted by this component
-
getFormSubmittingComponent
public IFormSubmittingComponent getFormSubmittingComponent()
- Returns:
- the
IFormSubmittingComponent
-
getDefaultFormProcessing
public boolean getDefaultFormProcessing()
Description copied from interface:IFormSubmitterReturns 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.- Specified by:
getDefaultFormProcessingin interfaceIFormSubmitter- Returns:
- defaultFormProcessing
-
onError
public void onError()
Description copied from interface:IFormSubmitterMethod that is invoked when form processing fails; for example, when there are validation errors.- Specified by:
onErrorin interfaceIFormSubmitter
-
onSubmit
public void onSubmit()
Description copied from interface:IFormSubmitterOverride this method to provide special submit handling in a multi-button form. This method will be called before the form's onSubmit method.- Specified by:
onSubmitin interfaceIFormSubmitter
-
onAfterSubmit
public void onAfterSubmit()
Description copied from interface:IFormSubmitterOverride this method to provide special submit handling in a multi-button form. This method will be called after the form's onSubmit method.- Specified by:
onAfterSubmitin interfaceIFormSubmitter
-
-