Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
1.1.8
-
None
-
None
-
GlassFish v2 on Ubuntu 8.04, MyFaces 1.2.4 as JSF implementation, Facelets 1.1.14
Description
When using the popupDateFormat attrinute of the <t:inputCalendar> component, the date/time conversion seems buggy. Two problems occur:
1. On submit, the day before the selected date is submitted, even if the popup wasn't used. E.g. if the displayed date is 2009-01-10, the date that will be set in the bean will be 2008-01-09.
2. When the date pattern is filled using a Message Bundle resource (e.g. popupDateFormat="#
", a fixed date of "01-01-01" is displayed and submitted.
While these are serious problems, an easy work around is not to used popupDateFormat, but adding a <f:convertDateTime> instead. Therefore a simple solution might be to deprecate (or remove) the popupDateFormat attribute.