Del Bene an.delb...@gmail.com escribió: -
Para: users@wicket.apache.org
De: Andrea Del Bene an.delb...@gmail.com
Fecha: 01/03/2013 17:55
Asunto: Re: Error with Hidden Field and its enum value
The error occurs because Wicket convert your enum to a string when the
form is rendered
Hi wickers !!
I've a problem with a form and a hidden field.
The form has a CompoundPropertyModel of a data class. This class has an enum
propertiy, which I want to store into a HiddenField and later retrieve (with
the whole data class and the rest of the data).
When the panel is rendered,
The error occurs because Wicket convert your enum to a string when the
form is rendered, then it tries to do the opposite converting the string
to your enum. And here we have the problem. Wicket doesn't fin a valid
converter (see JAvaDoc of FormComponent.convertInput) to obtain your
enum from