Facelets: need metarule to convert String<-> Timezone for date converter ------------------------------------------------------------------------
Key: TRINIDAD-1734 URL: https://issues.apache.org/jira/browse/TRINIDAD-1734 Project: MyFaces Trinidad Issue Type: Bug Components: Facelets Affects Versions: 2.0.0.2-core Reporter: Yee-Wah Lee Priority: Minor 1. Modify the inputDate demo to specify timezone as a string on the converter, e.g. <tr:inputDate id="mdf8" value="#{date.date5}" label="attached converter with locale ja"> <tr:convertDateTime locale="ja" type="date" dateStyle="full" timeZone="America/New_York"/> </tr:inputDate> 2. Run the page with facelets enabled. Get the following runtime error: java.lang.IllegalArgumentException: Cannot convert America/New_York of type class java.lang.String to class java.util.TimeZone at com.sun.el.lang.ELSupport.coerceToType(ELSupport.java:381) at com.sun.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:66) at com.sun.faces.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:81) at com.sun.faces.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:74) at javax.faces.view.facelets.MetaTagHandler.setAttributes(MetaTagHandler.java:122) at javax.faces.view.facelets.DelegatingMetaTagHandler.setAttributes(DelegatingMetaTagHandler.java:96) at com.sun.faces.facelets.tag.jsf.ConverterTagHandlerDelegateImpl.applyAttachedObject(ConverterTagHandlerDelegateImpl.java:126) at javax.faces.view.facelets.FaceletsAttachedObjectHandler.applyAttachedObject(FaceletsAttachedObjectHandler.java:91) at com.sun.faces.facelets.tag.jsf.ConverterTagHandlerDelegateImpl.apply(ConverterTagHandlerDelegateImpl.java:73) at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.