Interface FormattableForm

All Superinterfaces:
Form
All Known Implementing Classes:
AbstractFormattableForm

public interface FormattableForm extends Form
Interface for Struts 2 forms that can be processed by FormFormatterInterceptor and StrutsMiscellaneousLibrary#updateDisplay.
  • Method Details

    • format

      FormatResult format()

      Returns formatted text and/or sets string fields from unprocessed form fields of the implementing class. This is the reverse of Form#manualParameterConvert and Validateable#validate.

      Unprocessed form fields are those not processed by FormFormatterInterceptor for a number of reasons.

      • Form field is a string, string array, or string collection, which are already formatted.
      • Form field is annotated with ManualParameterConversion.
      • Form field is a non-string array.
      • Form field is a non-string collection without a converter annotation.