[richfaces-issues] [JBoss JIRA] Commented: (RF-997) Calendar - incorrect use of converters
Benedek Fazekas (JIRA)
jira-events at lists.jboss.org
Thu Nov 15 05:53:18 EST 2007
[ http://jira.jboss.com/jira/browse/RF-997?page=comments#action_12387684 ]
Benedek Fazekas commented on RF-997:
------------------------------------
i tried my app with the jars from richfaces-ui-3.1.3-20071115.052920-19-bin.tar.gz and i still have this problem with a bit different stack trace:
javax.faces.convert.ConverterException: java.text.ParseException: Unparseable date: "11/55/2007"
at javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:73)
at org.richfaces.component.UICalendar.getAsDate(UICalendar.java:271)
at org.richfaces.renderkit.CalendarRendererBase.getSelectedDate(CalendarRendererBase.java:349)
my code is:
<rich:calendar
id="doc_expireDate"
datePattern="MM/dd/yyyy"
value="#{pax.apisDocument.expireDate}"
enableManualInput="true"
styleClass="calendar"
/>
possible it is not yet fixed or have i missed something?
> Calendar - incorrect use of converters
> --------------------------------------
>
> Key: RF-997
> URL: http://jira.jboss.com/jira/browse/RF-997
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.1.0
> Reporter: Maksim Kaszynski
> Assigned To: Alexej Kushunin
> Fix For: 3.2.0
>
>
> Calendar component uses converter.getAsObject on render phase.
> This is wrong.
> Correct behavior - use converter.getAsObject on process validations phase.
> In case of bad user input - converter will give conversion exception, display submitted value in input field, in calendar grid select last user selected day (if exists).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list