[
https://issues.apache.org/jira/browse/TRINIDAD-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504587
]
Matthias Weßendorf commented on TRINIDAD-60:
--------------------------------------------
work around, use ValueExpression that is bound to a Date
in JSP, the Tag class does this, when there isn't ValueExpression/ValueBinding
Date value = TagUtils.getDate(_maximum);
validator.setMaximum(value);
> When used with facelets tr:validateDateTimeRange can't take "yyyy-MM-dd"
> arguments
> ----------------------------------------------------------------------------------
>
> Key: TRINIDAD-60
> URL: https://issues.apache.org/jira/browse/TRINIDAD-60
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components, Facelets
> Affects Versions: 1.0.1-core
> Reporter: Thorsten Guenther
>
> java.lang.IllegalArgumentException: Cannot convert 2007-09-20 of type class
> java.lang.String to class java.util.Date
> at com.sun.el.lang.ELSupport.coerceToType(ELSupport.java:367)
> at
> com.sun.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:52)
> at
> com.sun.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:45)
> at com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
> at
> com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
> at
> com.sun.facelets.tag.jsf.ValidateHandler.apply(ValidateHandler.java:98)
> at
> com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
> at
> com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
> at
> com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
> at
> com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
> at
> com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.