You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Vasyl Stashuk <va...@acm.org> on 2004/03/04 08:52:52 UTC

Woody repeater and big record count

Hi!

I have large number of records, that should be shown to user. They can't 
fit on one page.
What is best way to implement paging using woody?

regards,
vasyas.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Woody repeater and big record count

Posted by Ugo Cei <u....@cbim.it>.
Vasyl Stashuk wrote:
> I have large number of records, that should be shown to user. They can't 
> fit on one page.
> What is best way to implement paging using woody?

Do you mean a paged Woody repeater? I'm afraid you'll have to code it 
yourself, or otherwise revision your design. Having a form with a large 
repeating array smells of bad UI design.

	Ugo



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Woody repeater and big record count

Posted by Leszek Gawron <ou...@wlkp.org>.
On Thu, Mar 04, 2004 at 09:52:52AM +0200, Vasyl Stashuk wrote:
> Hi!
> 
> I have large number of records, that should be shown to user. They can't 
> fit on one page.
> What is best way to implement paging using woody?
Look at the petstore example - it shows the way to display paged result set by
using a continuation local variable.

	lg
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/       ouzo@wlkp.org           _\\()//_
         .'/()\'.     Phone: +48(501)720812     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Woody repeater and big record count

Posted by Joerg Heinicke <jo...@gmx.de>.
On 04.03.2004 08:52, Vasyl Stashuk wrote:

> Hi!
> 
> I have large number of records, that should be shown to user. They can't 
> fit on one page.
> What is best way to implement paging using woody?

I do it the following way: I have an object repeatersettings with 
properties row count, offset and total hits. They are bound to the form 
model. Additionally I have 4 buttons start, end, next, previous for 
changing the offset, and a field + button for changing the row count. 
Offset and row count handling is in the flow. The repeatersettings are 
passed to the data access layer and at the end OJB returns a collection 
with exactly {row count} elements and re-sets the total hits. The offset 
is taken into account easily by using setStartAtIndex() and 
setEndAtIndex() on the Query. The total hits are read from the 
OJBIterator (returned from getIteratorByQuery) using fullSize().

I guess it simply depends on the number of objects, but creating an 
instance for all entries in the database for giving Woody the complete 
control over the repeater might be not handy.

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org