Class AbstractFormattableForm
java.lang.Object
name.matthewgreet.strutscommons.form.AbstractForm
name.matthewgreet.strutscommons.form.AbstractFormattableForm
- All Implemented Interfaces:
Serializable
,Form
,FormattableForm
Template for Struts 2 forms that receives form data and can be processed by
FormFormatterInterceptor
and
StrutsMiscellaneousLibrary.updateDisplay(java.lang.Class<?>, java.lang.Object, java.lang.Object)
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat()
Returns formatted text and/or sets string fields from unprocessed form fields of the implementing class.Methods inherited from class name.matthewgreet.strutscommons.form.AbstractForm
doValidate, manualParameterConvert, resetFields
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface name.matthewgreet.strutscommons.form.Form
doValidate, manualParameterConvert, resetFields
-
Constructor Details
-
AbstractFormattableForm
public AbstractFormattableForm()
-
-
Method Details
-
format
Returns formatted text and/or sets string fields from unprocessed form fields of the implementing class. This is the reverse of
Form.manualParameterConvert(java.util.Map<java.lang.String, java.lang.String>, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.TextProvider)
andValidateable.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.
- Specified by:
format
in interfaceFormattableForm
-