I understand the technical reason, but I find it strange/wrong to
assume that all columns require the same model object type. Which
means that more often than not you end up with Object as type. And
because the provider requires the same type (Object) ... Does applying
Generics provide any value here?

Juergen

On Fri, Jul 31, 2009 at 8:45 PM, Igor Vaynberg<[email protected]> wrote:
> it is because populateItem is passed in the model that represents the
> row of the table, just like listview.
>
> IColumn extends ICellPopulator<T> which has the populateItem that
> takes IModel<T>
>
> -igor
>
> On Fri, Jul 31, 2009 at 11:16 AM, Juergen
> Donnerstag<[email protected]> wrote:
>> Question please. "DataTable"s can have one or more columns. According
>> to the constructor each IColumn must have the same model object type.
>> What is the logic behind that? I would assume that each column can
>> have a different model object type.
>>
>>        public DataTable(String id, IColumn<T>[] columns, IDataProvider<T>
>> dataProvider, int rowsPerPage)
>>
>> Juergen
>>
>

Reply via email to