Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 72409 invoked from network); 7 Apr 2006 17:59:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Apr 2006 17:59:08 -0000 Received: (qmail 848 invoked by uid 500); 7 Apr 2006 17:58:52 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 635 invoked by uid 500); 7 Apr 2006 17:58:52 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 566 invoked by uid 99); 7 Apr 2006 17:58:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Apr 2006 10:58:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [62.40.176.118] (HELO hp.gefi.at) (62.40.176.118) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Apr 2006 10:58:50 -0700 Received: from [192.168.1.14] (werner@leia.gefi.home [192.168.1.14]) by hp.gefi.at (8.9.3+3.2W/8.9.3/Debian 8.9.3-21) with ESMTP id TAA24811 for ; Fri, 7 Apr 2006 19:58:28 +0200 X-Authentication-Warning: hp.gefi.at: Host werner@leia.gefi.home [192.168.1.14] claimed to be [192.168.1.14] Message-ID: <4436A837.9010303@gefi.at> Date: Fri, 07 Apr 2006 19:58:15 +0200 From: werner User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: CFORM: repeater with paging support References: <44364817.30608@gefi.at> <44364D24.5070108@thebug.it> In-Reply-To: <44364D24.5070108@thebug.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Simone Gianni wrote: > Hi Werner, > there is already a patch for this on jira, see > http://issues.apache.org/jira/browse/COCOON-1220 . Sylvain didn't > include it because something was missing (see comments on the issue). > Maybe you should try this patch, then report your feedback either here > or on the issue directly, and we could work to consolidate it, since I > also need something similar. I have seen this patch before, but I was afraid of using it so far. The code does not look bad, so I think I'll give it a try. I don't know why Sylvain think's that it still needs some work, but maybe I'll find out (I have to check the mailing list about this 'validation errors bubbling' issue). > > I'm currently using a repeater, followed by a FilterTransformer, but > this fetches all the rows from the database (Hibernate) at once, and > since the entire repeater is generated also lazy relations are quite > useless : all relations are evaluated as well. Well, I would like to use the repeater for really large tables (>1000 records), so I can't materialize the whole table. I don't have so much RAM :-) Werner > > Simone > > werner wrote: > >> Dear List, >> >> I'm looking for a solution to create a repeater with paging support. >> The repeater is usually connected to some database via OJB or >> Hibernate. I think that this is a common problem, so I hope that >> somebody out there has already done this before ;-) >> >> In short the problems I want to solve are: >> - create a DAO that returns only the records that should be displayed >> (that's not easy with OJB. looks like there is no real paging >> support in OJB. >> I don't know Hibernate.) >> the DAO should also return the number of overall records to be able to >> calculate the number of pages >> - create a widget that displays the links to the pages (no idea how >> to do that) >> >> Any suggestions ? >> >> Werner >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> For additional commands, e-mail: users-help@cocoon.apache.org >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org