Hi everyone!
I have a form which needs to select a Class from a list, so I added a 
DropDownChoice loaded with a list of beans like:

public class ClassDescriptionBean{
   private String description;
   private Class type;

   [getters and setters omissis]
}

so that the form shows nice descriptions..

The form has a CompoundPropertyModel with a "back bean" like

public class BackBean{
   Class type;

   [getters and setters omissis]
}

But when I try to submit the form I have the following exception:

org.apache.wicket.util.convert.ConversionException: Can't convert value: [EMAIL 
PROTECTED] to class: class java.lang.Class for setting it on [EMAIL PROTECTED]

Obviously PropertyResolverConverter doesn't know how to map a 
ClassDescriptionBean to the corresponding Class, but how am I supposed to do 
it? I already have a custom ConverterLocator in place, but it looks like it 
gets called only when the source (or the destination) class of the conversion 
is a String..
If I change BackBean.type to a ClassDescriptionBean everything works, but I'd 
like to add the conversion.. Am I missing something?

Many thanks for your attention!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to