Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1387

Conversion buggy when using popupDateFormat

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 1.1.8
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
      None
    • Environment:
      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="#

      {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.

        Attachments

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              bkummel Bart Kummel
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: