[richfaces-issues] [JBoss JIRA] Commented: (RF-8163) rich:calendar switching between JulianCalendar and Gregorian

Thomas Morper (JIRA) jira-events at lists.jboss.org
Wed Mar 3 02:35:10 EST 2010


    [ https://jira.jboss.org/jira/browse/RF-8163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12517771#action_12517771 ] 

Thomas Morper commented on RF-8163:
-----------------------------------

I can still reproduce the bug with 3.3.3 CR1.

I do the following steps: 
Open a dialog that creates a new object at our software. The User has the possibility to enter some event dates at this point. Now I use my keyboard and enter 1.1.1 1:1 (dd.MM.yy HH:mm) to the first event date. When I press the save button, the save operation fails as MS SQL can not handle the resulting JulianCalendar. I will attach a screenshot of the eclipse debugger soon.

What's strange: After the save operation has failed, the user gets an error message on the dialog. Pressing save now again WITHOUT changing ANYTHING on the input fields results in an GregorianCalendar and everything works. But it sucks the user always getting the error message...

> rich:calendar switching between JulianCalendar and Gregorian
> ------------------------------------------------------------
>
>                 Key: RF-8163
>                 URL: https://jira.jboss.org/jira/browse/RF-8163
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-input
>    Affects Versions: 3.3.2.CR1, 3.3.2.GA
>         Environment: Windows (several versions), Tomcat 6.0.18, MS IE 8 or Firefox 3.0.
>            Reporter: Thomas Morper
>            Assignee: Andrey Markhel
>             Fix For: 3.3.3.Final
>
>         Attachments: screenshot-1.jpg
>
>
> We have several rich:calendar elements at our application with date format dd-mm-yy hh:mm. We now hve the following problem: When a user types in a date without using the calendar-popup and uses a single-number year without a leading zero (e. g. 12.12.1 12:12), the calendar accepts the input (correct), but it creates a JulianCalendar for the Date cariable at the according bean, while it creates a GregorianCalendar for 12.12.01 12:12 or any other input with two digits for the year.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list