开发者

pagination using velocity

开发者 https://www.devze.com 2023-02-06 09:40 出处:网络
Is their is macros / tools available for开发者_如何学Python pagination in velocity (spring used as framework)Take a look at the org.apache.velocity.tools.view.PagerTool

Is their is macros / tools available for开发者_如何学Python pagination in velocity (spring used as framework)


Take a look at the org.apache.velocity.tools.view.PagerTool which allows you to page through a list of items.


As alternative approach you can use some JQuery plugin that handles all client-side processing and take data from the server-side code. In that case you can generate a plain table with velocity, and plugin will add pagination dinamically on the server-side. You migh try http://www.datatables.net/ because it handles pagination, filtering, ordering and has much more features. Here is explained how you can integrate DataTables with java servlet application http://www.codeproject.com/KB/java/JQuery-DataTables-Java.aspx. In this example is used JSP and servlet but you can easily change this to velocity because server side code is simple.

0

精彩评论

暂无评论...
验证码 换一张
取 消