The model for the Trinidad table is not java.util.List. It's org.apache.myfaces.trinidad.model.CollectionModel; and Trinidad also supports javax.faces.model.DataModel. Both of these fully support large datasets.
The Tomahawk page you refer to is 100% applicable to Trinidad as well, as it talks about the JSF DataModel API, not anything Tomahawk-specific. If you want to support efficient Trinidad sorting on large datasets, you'd need to implement the full CollectionModel API, not just DataModel. -- Adam On 9/4/07, Francisco Passos <[EMAIL PROTECTED]> wrote: > > Good evening. > > I'm wondering if there is a way to use tr:tables with large datasets that > allows us to fetch the specific data page from the database upon navigation > to that page, instead of having the whole list in memory. > > It works fine for small tables, but for tables with a couple million of > records it could hit the server memory really hard. > > I know Tomahawk addresses this issue for their tables here > http://wiki.apache.org/myfaces/WorkingWithLargeTables . > > > I imagine I could just extend a java.util.List and override the getSize() > - that coupled with the rangechangelisteners could do the trick. The > question is: is it already done? > > -- > Francisco Passos >

