[
https://issues.apache.org/jira/browse/TOMAHAWK-1425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866342#action_12866342
]
Martin Marinschek commented on TOMAHAWK-1425:
---------------------------------------------
Hi Leonardo,
I have always thought that JSF should add a business-converter for such issues.
So we should have a way to convert between the model type that we need for the
renderer, and the model-type that the backing-beans use.
You could register such a converter on the input-component like the normal
converter, businessConverter="...". We could also cover stuff like the
joda-date with this.
Eventually, we could even add a central registry for this in MyFaces where you
can register business-converters centrally and hence let the renderer
automatically retrieve such a a converter for the backing-bean datatype and the
datatype it needs.
best regards,
Martin
> Support to java.sql.Date using inputCalendar tag.
> -------------------------------------------------
>
> Key: TOMAHAWK-1425
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1425
> Project: MyFaces Tomahawk
> Issue Type: New Feature
> Components: Calendar
> Affects Versions: 1.1.8
> Reporter: Paulo Henrique Couto de Lima
> Assignee: Leonardo Uribe
> Priority: Minor
> Fix For: 1.1.10-SNAPSHOT
>
> Attachments: HtmlCalendarRenderer.java.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Trying to use a java.sql.Date value for inputCalendar results in
> IllegalArgumentException, thrown by the deprecated method getHour of
> java.sql.Date.
> java.util.Date does not throw any exceptions when getHour is invoked.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.