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

Bug 994012

Summary: one-off patch for 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: Jonáš Trantina <jtrantin>
Status: CLOSED CURRENTRELEASE QA Contact: Juraj Huska <jhuska>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.3.0CC: cobrien, jhuska, ppitonak
Target Milestone: CR1   
Target Release: One-off release   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
PATCH NAME: 994012 PRODUCT NAME: Web Framework Kit VERSION: 2.3 SHORT DESCRIPTION: rich:calendar tag with pattern without day is cleared on click. LONG DESCRIPTION: See RF-13102 (https://issues.jboss.org/browse/RF-13102) for further info. MANUAL INSTALL INSTRUCTIONS: Follow the required actions to apply this patch: Replace jar in binary distribution 1 - Locate the "richfaces-components-ui-4.3.2.Final-redhat-1.jar" coming from jboss-wfk-2.3.0-richfaces-bin.zip (./jboss-wfk-2.3.0/richfaces-4.3.2.Final-redhat-1/artifacts/ui/richfaces-components-ui-4.3.2.Final-redhat-1.jar) 2 - Replace the "richfaces-components-ui-4.3.2.Final-redhat-1.jar" with file "richfaces-components-ui-4.3.2.Final-redhat-1.bz-994012.jar" from this patch. Add artifact to WFK Maven repository 1 - install artifact into your local Maven repository using mvn install:install-file -Dfile=./richfaces-components-ui-4.3.2.Final-redhat-1-bz-994012.jar -DpomFile=./richfaces-components-ui-4.3.2.Final-redhat-1-bz-994012.pom Use patched artifact (as dependency) in your Maven builds 1 - overide dependency with following snipet in your application pom.xml <dependencyManagement> <dependencies> <dependency> <groupId>org.richfaces.ui</groupId> <artifactId>richfaces-components-ui</artifactId> <version>4.3.2.Final-redhat-1-bz-994012</version> </dependency> </dependencies> </dependencyManagement> Note, if there is already a <dependencyManagement> section in you pom.xml, you need to place this snippet to appear on the top of the section COMPATIBILITY: None DEPENDENCIES: None SUPERSEDES: None SUPERSEDED BY: None CREATOR: Jonáš Trantina DATE: 08/06/2013
Story Points: ---
Clone Of: 988405 Environment:
Last Closed: 2013-08-20 14:16:06 UTC Type: Support Patch
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: 988405    
Bug Blocks:    
Attachments:
Description Flags
Patched richfaces-components-ui jar
none
Patched jar SHA1
none
Patch
none
Patched sources jar SHA1
none
Patch none

Description Jonáš Trantina 2013-08-06 13:48:33 UTC
+++ 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> 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> 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> 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> 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 1 Jonáš Trantina 2013-08-06 13:54:27 UTC
Created attachment 783351 [details]
Patched richfaces-components-ui jar

Added patched jar.

Comment 2 Jonáš Trantina 2013-08-06 13:55:12 UTC
Created attachment 783352 [details]
Patched jar SHA1

Comment 3 Jonáš Trantina 2013-08-07 15:06:12 UTC
Created attachment 783966 [details]
Patch

Comment 4 Jonáš Trantina 2013-08-07 15:08:31 UTC
Created attachment 783967 [details]
Patched sources jar SHA1

Comment 5 Jonáš Trantina 2013-08-08 06:38:30 UTC
Created attachment 784239 [details]
Patch

Comment 6 Jonáš Trantina 2013-08-08 06:40:00 UTC
Please verify the patch.

Thanks!

Comment 9 Juraj Huska 2013-08-11 11:55:08 UTC
I have done patch testing. It solves the problem and I have not found any other regression.

Could you please proceed with patch uploading ?

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

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