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: | RichFaces | Assignee: | Brian Leathem <bleathem> | |
| Status: | CLOSED UPSTREAM | QA Contact: | Pavol Pitonak <ppitonak> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 2.3.0 | CC: | 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 | |||
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. Brian Leathem <bleathem> updated the status of jira RF-13102 to Resolved 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 Pavol Pitonak <ppitonak> updated the status of jira RF-13102 to Closed 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. Brian Leathem <bleathem> updated the status of jira RF-13102 to Reopened |
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