[
https://issues.jboss.org/browse/RF-13102?page=com.atlassian.jira.plugin.s...
]
RH Bugzilla Integration commented on RF-13102:
----------------------------------------------
Jonáš Trantina <jtrantin(a)redhat.com> made a comment on [bug
994012|https://bugzilla.redhat.com/show_bug.cgi?id=994012]
+++ This bug was initially created as a clone of Bug #988405 +++
Description of problem:
When a rich:calendar component has datePattern without a day (e.g. MM/yyyy) then selected
date is cleared when opening the calendar (you can see today date instead of the
previously selected date).
However, when the form is sent, the value is correctly assigned to the binded value.
Example:
<rich:calendar value="#{richBean.date}" datePattern="yyyy-MM"/>
Version-Release number of selected component (if applicable):
How reproducible:
Create a project with the tag from above.
Steps to Reproduce:
1. Open the page with the calendar tag
2. Select some date
3. Click on the input to open up the calendar, the input gets clear, today date is
selected
Actual results:
Previously chosen date should be selected in the calendar, the date should stay in the
input.
Expected results:
Today date is selected and input is
--- Additional comment from Jonáš Trantina on 2013-07-25 10:43:30 EDT ---
Mixed up Actual and Expected results, correct version:
Actual results:
Today date is selected and input is cleared.
Expected results:
Previously chosen date should be selected in the calendar, the date should stay in the
input.
--- Additional comment from JBoss JIRA Server on 2013-07-30 20:56:26 EDT ---
Brian Leathem <bleathem(a)gmail.com> updated the status of jira RF-13102 to Resolved
--- Additional comment from JBoss JIRA Server on 2013-07-30 20:56:26 EDT ---
Brian Leathem <bleathem(a)gmail.com> made a comment on jira RF-13102
Defaulted to the first of the month when the date string has no day value
--- Additional comment from JBoss JIRA Server on 2013-08-05 09:46:06 EDT ---
Pavol Pitonak <ppitonak(a)redhat.com> updated the status of jira RF-13102 to Closed
--- Additional comment from JBoss JIRA Server on 2013-08-05 09:46:06 EDT ---
Pavol Pitonak <ppitonak(a)redhat.com> made a comment on jira RF-13102
Verified that r:calendar behaves as Brian described, i.e. first day of selected month is
highlighted.
rich:calendar with date pattern- input gets cleared on click
------------------------------------------------------------
Key: RF-13102
URL:
https://issues.jboss.org/browse/RF-13102
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-input
Affects Versions: 4.2.3.Final, 4.3.2
Reporter: Jonáš Trantina
Assignee: Brian Leathem
Fix For: 4.3.4
When a rich:calendar component has datePattern without a day (e.g. MM/yyyy) then selected
date is cleared when opening the calendar (you can see today date instead of the
previously selected date).
However, when the form is sent, the value is correctly assigned to the binded value.
Example:
{noformat}
<rich:calendar value="#{richBean.date}"
datePattern="yyyy-MM"/>
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira