JSF 2.0: Is there any advantage in using DataModel<T> over List<T> for CRUD applications

Viewed 7881

One advantage of the datamodel is that you get the row index in a table. But I find this unnecessary, since you can access the current row element using the var attribute of h:datatable. And I often need to convert to the datamodel to list, since some component libraries are expecting a list. I am thinking of completely abandoning DataModel. What do you think? Are there any advantages of DataModel.

Thanks, Theo

1 Answers
Related