Class NullForm

java.lang.Object
name.matthewgreet.strutscommons.form.AbstractForm
name.matthewgreet.strutscommons.form.NullForm
All Implemented Interfaces:
Serializable, Form

public class NullForm extends AbstractForm
Class for form driven Actions that don't receive any form data.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doValidate(com.opensymphony.xwork2.interceptor.ValidationAware validationAware, com.opensymphony.xwork2.TextProvider textProvider)
    Validates and parses form data itself, such as required fields or date validation, writing any error or field messages to the ValidationAware message receiver.
    void
    Sets all displayed fields to default values for data entry of a new record, which is usually an empty string.

    Methods inherited from class name.matthewgreet.strutscommons.form.AbstractForm

    manualParameterConvert

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NullForm

      public NullForm()
  • Method Details

    • resetFields

      public void resetFields()
      Description copied from class: AbstractForm
      Sets all displayed fields to default values for data entry of a new record, which is usually an empty string.
      Specified by:
      resetFields in interface Form
      Overrides:
      resetFields in class AbstractForm
    • doValidate

      public void doValidate(com.opensymphony.xwork2.interceptor.ValidationAware validationAware, com.opensymphony.xwork2.TextProvider textProvider)
      Description copied from class: AbstractForm
      Validates and parses form data itself, such as required fields or date validation, writing any error or field messages to the ValidationAware message receiver. Any error message indicates a failure.
      Specified by:
      doValidate in interface Form
      Overrides:
      doValidate in class AbstractForm
      Parameters:
      validationAware - Error message receiver, usually the calling action.
      textProvider - Message name translator that generates localised text, if this is set up. This is usually ignored as no localisation is set up.