org.apache.wicket.ajax.form
Class AjaxFormSubmitBehavior.AjaxFormSubmitter

java.lang.Object
  extended by org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.AjaxFormSubmitter
All Implemented Interfaces:
IFormSubmitter
Enclosing class:
AjaxFormSubmitBehavior

public static class AjaxFormSubmitBehavior.AjaxFormSubmitter
extends 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
 boolean getDefaultFormProcessing()
          Returns whether form should be processed the default way.
 Form<?> getForm()
          Returns the form this component submits.
 IFormSubmittingComponent getFormSubmittingComponent()
           
 void onAfterSubmit()
          Override this method to provide special submit handling in a multi-button form.
 void onError()
          Method that is invoked when form processing fails; for example, when there are validation errors.
 void onSubmit()
          Override this method to provide special submit handling in a multi-button form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getForm

public Form<?> getForm()
Description copied from interface: IFormSubmitter
Returns the form this component submits.

Specified by:
getForm in interface IFormSubmitter
Returns:
form submitted by this component

getFormSubmittingComponent

public IFormSubmittingComponent getFormSubmittingComponent()

getDefaultFormProcessing

public boolean getDefaultFormProcessing()
Description copied from interface: IFormSubmitter
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.

Specified by:
getDefaultFormProcessing in interface IFormSubmitter
Returns:
defaultFormProcessing

onError

public void onError()
Description copied from interface: IFormSubmitter
Method that is invoked when form processing fails; for example, when there are validation errors.

Specified by:
onError in interface IFormSubmitter

onSubmit

public void onSubmit()
Description copied from interface: IFormSubmitter
Override 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:
onSubmit in interface IFormSubmitter

onAfterSubmit

public void onAfterSubmit()
Description copied from interface: IFormSubmitter
Override 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:
onAfterSubmit in interface IFormSubmitter


Copyright © 2006–2016 Apache Software Foundation. All rights reserved.