Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Very large table pagination. How to make getRowCount() return long?

843844Jan 24 2010 — edited Jan 29 2010
I found good solution for the large tables. It is MyFaces Trinidad Table via its org.apache.myfaces.trinidad.model.CollectionModel

But the problem is the same as for all JSF table models. It is not intended to work with the long numbers.The maximum expected row number is limited by the int capacity.
I think the problem is inherited from JSF standard UIData and DataModel which have the int oriented interface:

int getRowCount()
int getRowIndex()
Object getRowData(int rowIndex)

I want to handle the tables (resultsets etc) which potentially can have long rowCount and using the long rowIndex.
Is it possible with Trinidad Table?
Is it ever possible with JSF without writing new table component from scratch?

Thanks in advance.

P.S. I'm using MyFaces 1.2.8 and trinidad 1.2.12
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2010
Added on Jan 24 2010
15 comments
486 views