On Thu, 13 Dec 2012 14:19:22 -0200, bogdan_cm <bogdan.iva...@rbccm.com> wrote:

Pagination is the reason for not using the Grid component. I want to paginate
my results without holding anything in memory (session). For Grid I will
select the entire set, @Persist it and then display portions on the page.
What I am doing is a bit different. I always select the (number of tokens I
need to display) +1 by using SQL Limit A,B. If I have
NumberOfTokensToDisplay +1 in the list it means there is another page, if
not, well not :).
The only thing I need to compute is nextPage number, which I put as context to Next eventLink. Much cleaner in terms or resources then holding an entire
list of results in memory, and no cleanup required when I'm done.

You know Grid actually supports what you want without using @Persist? Just implement a GridDataSource and pass it to the Grid's source parameter. If I got it right, you're basically rewriting Grid for doing what it already does.

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to