I guess this came with something like the widening of models/dataprovider?

On 5/17/08, Matej Knopp <[EMAIL PROTECTED]> 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
>

Reply via email to