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
+++ 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.