Integrate with jQuery Ajax API

Although HDPagination 1.3 provides Ajax support for application based on JSF 2.0. Unfortunately, there is no standard way to implement Ajax functions in Non-JSF world. Now days, jQuery has become popular to fill this gap, by providing powerful API to easily integrate with all traditional MVC frameworks (e.g. Struts, Spring MVC etc.). To allow HDPagination to work with jquery Ajax, you need to download an adapter jar file: hdpJQueryAdapter.jar Then use its tags <hdpex:jqueryAjax4PageLinks> and <hdpex:jqueryAjax4SortLinks> to generate jQuery scripts to add Ajax cability to pagination or sorting links.

To learn more about how to use the provided jQuery Ajax adapter to ajaxify the pagination controls (assuming you are already familiar with how to use HDPagination in a non-JSF application) ,please download the example from the links below or visit the online demo application online demo application.

Please remember to include the jQuery js file in your JSP page. The minimum version of jQuery is 1.3 because the function .live() is used internally.

At this stage, the adaptor only provides the support to the page links (e.g. first previous 2 3 4 5 ... next last ) and sort links (applied on the column heads).

links:

Download sample application source and war files: Example Download

HDPagination jQuery Ajax Adaptor source code: hdpJQueryAdapter-src.zip

HDPagination jQuery Ajax Adaptor Tag library doc: hdpJQueryAdapter-taglib-doc.zip

Wiki: Wiki - Integrate with jQuery Ajax