I am setting the time zone attribute for the tag <f:convertDataTime> from a
backing bean. This causes the following
ClassCastException in core 1.1.3
Caused by: java.lang.ClassCastException
at
org.apache.myfaces.shared_impl.taglib.core.ConvertDateTimeTagBase.setConverterTimeZone(ConvertDateTimeTagBase.java:165)
at
org.apache.myfaces.shared_impl.taglib.core.ConvertDateTimeTagBase.createConverter(ConvertDateTimeTagBase.java:85)
at javax.faces.webapp.ConverterTag.doStartTag(ConverterTag.java:63)
If I hard code the time zone in the attribute, i.e. timeZone="GMT-05:00", no
exception is thrown.
** JSP that caused ClassCastException
<h:outputText value="#{rowVar.date}">
<f:convertDateTime type="time" timeZone="#{phrQueryManager.timeZone}"/>
</h:outputText>
** JSP that works
<h:outputText value="#{rowVar.date}">
<f:convertDateTime type="time" timeZone="GMT-05:00"/>
</h:outputText>
Is this a bug I need to report in JIRA?
Paul Spencer