myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Kummel (JIRA)" <>
Subject [jira] Created: (TOMAHAWK-1387) Conversion buggy when using popupDateFormat
Date Sat, 10 Jan 2009 12:19:59 GMT
Conversion buggy when using popupDateFormat

                 Key: TOMAHAWK-1387
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Calendar
    Affects Versions: 1.1.8
         Environment: GlassFish v2 on Ubuntu 8.04, MyFaces 1.2.4 as JSF implementation, Facelets
            Reporter: Bart Kummel

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="#{msg.dateFormat}",
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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message