JodaTime (With EJB3) Page 2
This page demonstrates JumpStart's support for inputting and editing DateMidnight fields. Support starts with:
- DateMidnightPicker - a picker like DatePicker.
You can see in the source code (below) that we used JumpStart's MinDateISO and MaxDateISO validators.
We prefer these to Tapestry's MinDate and MaxDate which have to be changed whenever the translator pattern is changed.
You can see in the source code (below) that we used 3 more new classes:
- MinDateMidnight - a validator for DateMidnight fields. Specified in ISO format (YYYY-MM-DD).
- MaxDateMidnight - a validator for DateMidnight fields. Specified in ISO format (YYYY-MM-DD).
- DateMidnightTranslator - a translator which converts two-way between a DateMidnight and a String.
JumpStart doesn't yet deal with the inputting and editing of the other 4 Joda Time types.
Code contributions for inclusion in JumpStart gladly received!
Return
To Login