thanks pavel for this information. It sounds better than my first attempt.

The api of the example PlanetServiceImpl could looks like:
-----    
    public List<Planet> findAll(ServiceContext ctx) {
        return planetRepository.findAll();
    }

    public PagedResult<List<Planet>> findAll(ServiceContext ctx, Paging
paging) {
        return planetRepository.findAll(paging);
    }
-----

PagedResult is parameterized with the real finder result:
-----
    public class PagedResult<T> {
        public <T> getValues();
        int currentPage;
        int pageSize;
        int maxResults;
        int maxNumberOfPages;
        // ctor
        // getter/setter
    }
-----
Paging contains:
-----    
    public class Paging {
        int currentPage = 0;
        int pageSize = 25;
        boolean calculateCount = true;
        // ctor
        // getter/setter
    }
------

It's correct?


PaloT wrote:
> 
> When "count" is set to false another parameter in Paging will say how many
> pages forward we have to look that GUI can show only so many pages forward
> in pager.
> 

Could you explain these a little bit please? 

regards
   Steffen...
-- 
View this message in context: 
http://www.nabble.com/-sculptor--pagination-tp20636538s17564p20646049.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to