The DateField component allows a user to enter in a date by hand (via a text field) or by selecting one iwht the mosue via a drop down component.
The DateField component uses a DatePicker internally to provide the drop down box. The isValidDate function is provided to check whether the entered date is in fact valid. Date parsing and formatting is controlled via the standard java.text.DateFormat classes.
DateField is actually derived from nextapp.echo.TextField and hence can be treated like any other text field.
|