You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "David Tarr (JIRA)" <de...@myfaces.apache.org> on 2010/02/12 14:24:27 UTC
[jira] Created: (TOMAHAWK-1491) inputCalendar popupDateFormat
renders incorrect popup
inputCalendar popupDateFormat renders incorrect popup
-----------------------------------------------------
Key: TOMAHAWK-1491
URL: https://issues.apache.org/jira/browse/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}"
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.