Re: FormComponentPanel + unknown collection type

2010-12-06 Thread alex shubert
Oh, I fouled myself There nothing to do with setType at all and WiA uses explicit call only instead of generics. So, if there are code such as mine, all one have to do is properly assembly object on it's way to model. private Collection modelField; @Override protected void onInitialize()

Re: FormComponentPanel + unknown collection type

2010-12-06 Thread alex shubert
Anyone? ( On 6 December 2010 15:59, alex shubert wrote: > Hello! > > I got a problem with type mysmatch then implementing custom component. > > First of all, the code^ > public class EnumCheckGroup extends > FormComponentPanel> { > >  public EnumCheckGroup(final String id, final IModel Colle

FormComponentPanel + unknown collection type

2010-12-06 Thread alex shubert
Hello! I got a problem with type mysmatch then implementing custom component. First of all, the code^ public class EnumCheckGroup extends FormComponentPanel> { public EnumCheckGroup(final String id, final IModel> model, final Class enumClass) { //noinspection unchecked super