cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: GSoC, repeater pagination in place
Date Mon, 31 Jul 2006 14:00:45 GMT
Simone Gianni wrote:
> Hi Leszek,
> 
> 
> Leszek Gawron wrote:
> 
>> What about:
>> - goto a specific page action
>> - change page size action
> 
> The goto a specific page action already exist in some preliminary form,
> we should solve the page to index conversion problem before actually
> have a working one.
> 
>> I would like to propose something else:
>> public interface ValueListProvider() {
>>   public List getRows( SomeContextForFilteringAndSorting context, long
>> offset, long rowCount );
>>   public long getTotalRowCount( SomeContextForFilteringAndSorting
>> context );
>> }
> 
> Actually we decided to use the List interface for it, and on the test
> project we have a List implementation that actually works on a Hibernate
> Criteria in a way that it's able to retrieve blocks of records from
> hibernate and ask directly to the database the size, only implementing
> some basic methods of the List interface.
Does it fetch a whole page or a "window" with predefined size?

Would you be willing to make it public?

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message