Hello,

it's not a "scrolling" in the common sence, but tr:table supports pagination.

Look at
http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_table.html -> Range 
Navigation

you have to implement your own tableModel to get the "lazy loading" stuff to 
work, but it's not a big deal.

To see how it works look at
http://www.irian.at/trinidad-demo/faces/components/table_dynamic.jspx

Regards
Markus


-----Ursprüngliche Nachricht-----
Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Florian Reiser
Gesendet: Mittwoch, 30. Juli 2008 11:23
An: users@myfaces.apache.org
Betreff: [Trinidad] Scrolling table with partial row fetching?

Hello,

I have a fairly large table to display (> 1000 shown rows) in a big 
application (> 100 concurrent users).

I would like to show the table loading the individual rows only when shown.

<Pseudocode>
Start: Create a cursor at the database and count the rows. Initialise the 
scrolling display with it.
         Fetch the first 25 rows.

User scrolls to page 2: Fetch the next 25 rows

User scrolls to page 5: Fetch the rows up from row no. 51 to row no. 125
</Pseudocode>
With this behaviour I could avoid big memory requirements when 90% of the 
users only display the first page.
At the same time the other 10%  could scroll as far as they need at 
reasonable speed.

Is this possible?
How does Trinidad handle this issue?
Is there possibly a better solution?

With kind regards
Florian Reiser 


Reply via email to