You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by MrclSchprs <ma...@gmail.com> on 2007/09/28 14:08:30 UTC
Re: Table with large data set
Any news on this? I am facing the same problem; large datasets in a HTML
table.
Greetings,
Marcel
James Carman 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 <jo...@gmail.com> wrote:
>>>
>>> +1 for wiki or SVN
>>>
>>> Jonathan
>>>
>>>
>>> -----Original Message-----
>>> From: James Carman [mailto:james@carmanconsulting.com]
>>> 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:chiappone@gmail.com]
>>> 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: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>>
>> --
>> ~chris
>>
>
>
> James Carman, President
> Carman Consulting, Inc.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Table-with-large-data-set-tf1968004.html#a12939173
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org