James,

You seem to always have the answers.  If you could send me the code that
would be great.  I've seen others on the list asking for a
HibernateTableModel so it may be a good thing to post here or wiki, if the
code isn't that large.

Thanks,

~chris

On 7/19/06, James Carman <[EMAIL PROTECTED]> wrote:

I have a HibernateTableModel (an IBasicTableModel impl) if you're
interested.  There's only one issue which I couldn't really overcome
nicely.
It has to do with the sorting of the columns.  I didn't want to give up
the
ability to easily define my columns in the HTML (using the columns
attribute
of the @contrib:Table component), so I put in a little hack.  Basically,
what you return from your DAO methods is a PagingQueryResult object which
is
what the HibernateTableModel uses to ask for the data for each page.  But,
in each PagingQueryResult you have to "register" what columns are sortable
and how you sort them.  Anyway, I'll email it to you Chris if you want it.
Or, if there is more interest, I'll package it up nicely and put it in my
SVN repository.


-----Original Message-----
From: Chris Chiappone [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 2:23 PM
To: Tapestry List
Subject: Table with large data set

I was wondering what the best approach would be for creating a
contrib:Table
with a large data set.  My dataSet my contain thousands of entry's and
loading the page using contrib:Table would take forever not to mention
consume large amounts of memory.  Currently I am getting the data from
Hibernate.  What have you guys done to load just the data needed for the
current page then load the next pages data when using tablePages.

Thanks,

--
~chris



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
~chris

Reply via email to