Class AbstractSubmitLink

All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IFormSubmitter, IFormSubmittingComponent, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable
Direct Known Subclasses:
AjaxSubmitLink, SubmitLink

public abstract class AbstractSubmitLink extends AbstractLink implements IFormSubmittingComponent
Abstract class for links that are capable of submitting a form.
Author:
Matej Knopp
See Also:
  • Constructor Details

  • Method Details

    • setDefaultFormProcessing

      public final AbstractSubmitLink 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. TODO: This is a copy and paste from Button
      Specified by:
      setDefaultFormProcessing in interface IFormSubmittingComponent
      Parameters:
      defaultFormProcessing - defaultFormProcessing
      Returns:
      This
    • 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
    • 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
    • getInputName

      public String getInputName()
      Description copied from interface: IFormSubmittingComponent
      Returns the name that is unique to this component, at least within the form.
      Specified by:
      getInputName in interface IFormSubmittingComponent
      Returns:
      component name