myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Tarr (JIRA)" <>
Subject [jira] Created: (TOMAHAWK-1491) inputCalendar popupDateFormat renders incorrect popup
Date Fri, 12 Feb 2010 13:24:27 GMT
inputCalendar popupDateFormat renders incorrect popup

                 Key: TOMAHAWK-1491
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Calendar
    Affects Versions: 1.1.9
            Reporter: David Tarr
            Priority: Minor

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}"
						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.

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

View raw message