Class VDate
java.lang.Object
fc.web.forms.FieldValidator
fc.web.forms.VDate
Validates a date.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidate(FormData fd, HttpServletRequest req) Works with any field that returns a String via it'sAbstractText.getValue(FormData)method.Methods inherited from class FieldValidator
getErrorMessage, getField
-
Constructor Details
-
VDate
-
-
Method Details
-
validate
Works with any field that returns a String via it'sAbstractText.getValue(FormData)method. The date string can be any valid string that is parseable by theDateFormat.parse(String)method (even if it's not semantically valid). For example, the following parses OK:02/29/1980- Specified by:
validatein classFieldValidator- Throws:
ClassCastException- If the field'sAbstractText.getValue(FormData)method does not return a String
-