Hi All,

I used to be able to pass enums directly as context for eventlinks and forms. 
Now I get runtime exceptions whenever I click on a link or submit a form that 
contains such context.


Caused by: org.apache.tapestry5.ioc.util.UnknownValueException: Input 'Test' 
does not identify a value from enumerated type com.db.enums.TestEnum
        at 
org.apache.tapestry5.util.StringToEnumCoercion.coerce(StringToEnumCoercion.java:66)
        at 
org.apache.tapestry5.util.StringToEnumCoercion.coerce(StringToEnumCoercion.java:34)
        at 
org.apache.tapestry5.ioc.services.CoercionTuple$CoercionWrapper.coerce(CoercionTuple.java:55)
        at 
org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl$TargetCoercion.coerce(TypeCoercerImpl.java:69)
        ... 119 more

It will only work if I convert the enum to an integer and vise versa in the 
event/form handlers.

Additionally I get runtime exceptions wherever I use EnumSelectModel. Before 
there was no need to pass encoders to the select component.

Thanks,
Alexis

Reply via email to