Re: t5.3: Grid and memory

2011-02-02 Thread Taha Hafeez
Hi Whatever Robert said + this might help https://svn.apache.org/repos/asf/tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry5/hibernate/HibernateGridDataSource.java Taha On Wed, Feb 2, 2011 at 4:39 AM, Robert Zeigler wrote: > You can implement a custom GridDataSou

Re: t5.3: Grid and memory

2011-02-01 Thread Robert Zeigler
You can implement a custom GridDataSource that executes a count(*) query on the # of items and returns that for "getAvailableRows". Then select just the correct subset of items via the "prepare" method: prepare(int startIndex, int endIndex, List sortConstraints) From that method, you know the s

t5.3: Grid and memory

2011-02-01 Thread Sérgio Esteves
Hi, I have a Grid that is bonded to a huge list - with hundreds of elements. The thing is, I want to get only 25 elements from the database for each page of the grid. But, if I do it, I lose the pagination links on the Grid because the page count is equal to the size of the list. What's the co