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

inputCalendar popupDateFormat renders incorrect popup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 1.1.9
    • None
    • Calendar
    • None

    Description

      When the popupDateFormat is set to "MM-yyyy" or "01-MM-yyyy" and after a value is chosen through the popup calendar, after clicking on the image again the previous month is selected.

      <t:inputCalendar value="#

      {theBean.thePojo.someDate}

      "
      binding="#

      {theBean.someDateInput}

      "
      converter="MMYYYYDateConverter" renderAsPopup="true"
      renderPopupButtonAsImage="true" popupDateFormat="MM-yyyy" />

      someDate is a Calendar. someDateInput is a UIInput. The converter is programmed to match popupDateFormat.

      1. Click on the popup image.
      2. Select some date, say februari 15th 2010
      3. See that the inputCalendar has it's value set to: 02-2010
      4. Click on the popup image
      5. See that the popup shows januari 31 2010 as selected value
      (the behaviour is that it always has the last day of the previous month selected)

      When I replace the format with "01-MM-yyyy" I have the same result. When I replace the format with "dd-MM-yyyy" the popup works fine.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            david tarr David Tarr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: