hi johan,
IDataProvider<Object> my = new IDataProvider<Object>()
i must admin - that's a creative argument... drop generics for usecases like
this.
what is the point of differentiating between iterator + model when the iterator
actually provides the type? to get it wrapped with Model() ??
given
public interface IDataProvider<T>
extends IDetachable
{
java.util.Iterator<T> iterator(int first, int count);
IModel<T> model(java.lang.Object object);
int size();
}
you always get type T for object as argument from model, don't you?
if i'd follow your example, i wouldn't gain anything of generics with wicket.
best regards, --- jan.