Simon Kitching wrote:
In order to implement "paging" at the presentation level without loading the entire dataset in memory, the business tier must also support "paging" in some manner, ie must provide methods that take first/numrows parameters and return the specified subset of available data plus information about the number of available rows.
Ah, now I see, you are right.
It looks like it isnt a business logic interface as it is so easy to implement with plain sql, but as soon as you have a complicated business logic and would like to paginate you have to tell this logic to do so.

However if DataPage or an equivalent was part of a non-ui library like commons-collections then this might be acceptable.
So we should ask them to do so. Myfaces already use commons-collections, so this wouldnt introduce a new dependency.


---
Mario

Reply via email to