Issue Details (XML | Word | Printable)

Key: SHALE-206
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Gary VanMatre
Reporter: Daniel del Río
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Shale

convertDateTime component throws exception when using the timeZone attribute

Created: 01/Jul/06 12:55 AM   Updated: 21/Aug/06 11:28 PM
Component/s: Core
Affects Version/s: Nightly
Fix Version/s: 1.0.3

Environment: xp, jdk 1.5, bea weblogic 9.1

Flags: Important


 Description  « Hide
There is not a JSF converter registered for the TimeZone class. This causes an exception be thrown when usign the converDateTime component:

<converter jsfid="conver tDateTime">
<attributes>
     <set name="pattern" value="dd/MM/yy, HH:mm" />
     <set name="timeZone" value="GMT+01" />
</attributes>
</converter>

> javax.faces.convert.ConverterException: You have requested a conversion for
> type java.util.TimeZone, but there is no by-type converter registered for
> this type

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
Struts #418427 Sat Jul 01 00:43:12 UTC 2006 gvanmatre Fix for SHALE-206 reported by Daniel del Rico. We were missing a TimeZone converter resulting in an exception when using the convertDateTime converter's timeZone property. The Clay component uses the core shale ConverterHelper to convert string metadata values into the target object property types. This utility is a JSF flavor of the commons bean utils converter.
Files Changed
MODIFY /struts/shale/trunk/shale-clay/src/main/resources/META-INF/faces-config.xml
ADD /struts/shale/trunk/shale-clay/src/main/java/org/apache/shale/clay/convert/TimeZoneConverter.java
ADD /struts/shale/trunk/shale-clay/src/main/java/org/apache/shale/clay/convert

Gary VanMatre added a comment - 01/Jul/06 07:46 AM
We were missing a TimeZone converter resulting in an exception when using the convertDateTime converter's timeZone property. The Clay component uses the core shale ConverterHelper to convert string metadata values into the target object property types. This utility is a JSF flavor of the commons bean utils converter.

Fix in the 20060701 nightly build.

Gary VanMatre made changes - 01/Jul/06 07:46 AM
Field Original Value New Value
Assignee Gary VanMatre [ gvanmatre@comcast.net ]
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 1.0.3 [ 21714 ]
Resolution Fixed [ 1 ]
sean schofield made changes - 21/Aug/06 11:28 PM
Fix Version/s 1.0.3-SNAPSHOT [ 21714 ]
Fix Version/s 1.0.3 [ 21750 ]
Jeff Turner made changes - 09/Aug/07 07:16 AM
Workflow Struts [ 38497 ] Struts - editable closed status [ 42150 ]
Antonio Petrelli made changes - 08/Jan/09 08:57 AM
Workflow Struts - editable closed status [ 42150 ] Struts - editable closed status (temporary) [ 46209 ]
Antonio Petrelli made changes - 08/Jan/09 09:08 AM
Workflow Struts - editable closed status (temporary) [ 46209 ] Struts - editable closed status [ 52861 ]