Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 988405

Summary: RF-13102: rich:calendar with date pattern- input gets cleared on click
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Jonáš Trantina <jtrantin>
Component: RichFacesAssignee: Brian Leathem <bleathem>
Status: CLOSED UPSTREAM QA Contact: Pavol Pitonak <ppitonak>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.3.0CC: jhuska, kpiwko
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 994012 (view as bug list) Environment:
Last Closed: 2013-09-11 06:46:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 994012    

Description Jonáš Trantina 2013-07-25 14:28:51 UTC
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

Comment 1 Jonáš Trantina 2013-07-25 14:43:30 UTC
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.

Comment 2 JBoss JIRA Server 2013-07-31 00:56:26 UTC
Brian Leathem <bleathem> updated the status of jira RF-13102 to Resolved

Comment 3 JBoss JIRA Server 2013-07-31 00:56:26 UTC
Brian Leathem <bleathem> made a comment on jira RF-13102

Defaulted to the first of the month when the date string has no day value

Comment 4 JBoss JIRA Server 2013-08-05 13:46:06 UTC
Pavol Pitonak <ppitonak> updated the status of jira RF-13102 to Closed

Comment 5 JBoss JIRA Server 2013-08-05 13:46:06 UTC
Pavol Pitonak <ppitonak> made a comment on jira RF-13102

Verified that r:calendar behaves as Brian described, i.e. first day of selected month is highlighted.

Comment 6 JBoss JIRA Server 2013-08-23 21:26:17 UTC
Brian Leathem <bleathem> updated the status of jira RF-13102 to Reopened

Comment 7 JBoss JIRA Server 2013-08-23 21:26:25 UTC
Brian Leathem <bleathem> updated the status of jira RF-13102 to Resolved