myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yee-Wah Lee (JIRA)" <>
Subject [jira] Created: (TRINIDAD-1734) Facelets: need metarule to convert String<-> Timezone for date converter
Date Tue, 23 Feb 2010 17:32:27 GMT
Facelets: need metarule to convert String<-> Timezone for date converter

                 Key: TRINIDAD-1734
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Facelets
    Affects Versions: 
            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"/>

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(
	at com.sun.el.ExpressionFactoryImpl.coerceToType(
	at com.sun.faces.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(
	at com.sun.faces.facelets.tag.MetadataImpl.applyMetadata(
	at javax.faces.view.facelets.MetaTagHandler.setAttributes(
	at javax.faces.view.facelets.DelegatingMetaTagHandler.setAttributes(
	at com.sun.faces.facelets.tag.jsf.ConverterTagHandlerDelegateImpl.applyAttachedObject(
	at javax.faces.view.facelets.FaceletsAttachedObjectHandler.applyAttachedObject(
	at com.sun.faces.facelets.tag.jsf.ConverterTagHandlerDelegateImpl.apply(
	at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message