[Logo] Mentawai Recipes
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Moderation Log] Moderation Log   [Register] Register / 
[Login] Login 
Automatic pagination through the PaginatorFilter  XML
Forum Index » Official Recipes
Author Message

Joined: 10/01/2008 08:20:15
Messages: 39

You may have an action that fetches a long list of objects from the database. So you will need to paginate this big collection. The PaginatorFilter will do this for you:


And in the ApplicationManager:

The default number of items per page is 20 and the default page parameter (http://www.mysite.com.br/UserAction.listAll.mtw?p=3) is "p". You can change that using a different PaginatorFilter constructor:

Now in your JSP you can just display your page with the pagination details:

Forum Index » Official Recipes
Go to:   
Powered by JForum 2.1.8 © JForum Team