Yeah, the whole thing is a little bit Oscar Wilde isn't it? The only thing worse than having generics is not having generics.
Matej Knopp-2 wrote: > > Hi, > > maybe it was already discussed here and I've just overlooked it, but > still. Why is DropDownChoice accepting IModel<List<? extends T>> > instead of just IModel<List<T>> as ListView doesn? > > e.g. > > public DropDownChoice(String id, IModel<List< ? extends T>> choices) > > public ListView(final String id, final IModel<List<T>> model) > > problem is, that List<? extends T> doesn't accept List<T>, so i have > to declare the model as IModel<List<? extends MyObject>> which sucks > even more than how stuff normally sucks with generics. > > -Matej > > -- View this message in context: http://www.nabble.com/DropDownChoice-generics-tp17296735p17297310.html Sent from the Wicket - Dev mailing list archive at Nabble.com.
