Re: T5: Type coercion from String to Enum

2009-02-09 Thread Andy Pahne
Folke schrieb: On Fri, Feb 6, 2009 at 13:32, Ulrich Stärk wrote: Does it work when you move the Unit enum into it's own class file? No, it doesn't. But I now know why: There are two different Unit classes from different ClassLoaders. So, I moved Unit out of Tapestry's app-package and

Re: T5: Type coercion from String to Enum

2009-02-06 Thread Folke
On Fri, Feb 6, 2009 at 13:32, Ulrich Stärk wrote: > Does it work when you move the Unit enum into it's own class file? No, it doesn't. But I now know why: There are two different Unit classes from different ClassLoaders. So, I moved Unit out of Tapestry's app-package and now it works! Since I re

Re: T5: Type coercion from String to Enum

2009-02-06 Thread Ulrich Stärk
Does it work when you move the Unit enum into it's own class file? Uli Folke Behrens schrieb: Hi Type coercion from String to an Enum type doesn't seem work. I get an IllegalArgumentException even though I wrote a special TypeCoercer and hooked it in via module. public static void contribut

T5: Type coercion from String to Enum

2009-02-06 Thread Folke Behrens
Hi Type coercion from String to an Enum type doesn't seem work. I get an IllegalArgumentException even though I wrote a special TypeCoercer and hooked it in via module. public static void contributeTypeCoercer(Configuration> configuration) { configuration.add(new CoercionTuple(String.class,