James, Does your PagingQueryResult returned by your DAO by any chance wrap a Hibernate Criteria? Later the Criteria methods setMaxResults(), setFirstResult(), addOrder() and list() are invoked from the HibernateTableModel on request?
Or where do you invoke the criteria (or similar) methods? Marcus Matèrn On 7/24/06, James Carman <[EMAIL PROTECTED]> wrote:
Chris, Well, some of the code uses other classes that are part of the project I'm on. I need to refactor it out so that it can stand alone. I'll try to do that soon. Sorry for the delay. James > James, > > Any chance you could share that HibernateTableModel code? > > Much Appreciated, > > ~chris > > On 7/19/06, Jonathan Barker <[EMAIL PROTECTED]> wrote: >> >> +1 for wiki or SVN >> >> Jonathan >> >> >> -----Original Message----- >> From: James Carman [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, July 19, 2006 4:38 PM >> To: 'Tapestry users' >> Subject: RE: Table with large data set >> >> 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] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > ~chris > James Carman, President Carman Consulting, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]