Has anyone use DataTable with Spring Pagination?

Has anyone use DataTable with Spring Pagination?

anjibmananjibman Posts: 115Questions: 10Answers: 0

Hi All,

I am planning to use DataTable with my Spring 4 application. My table in JSP can get thousand of records so looking for good implementation so that my web page does time out.

My understanding is Spring Pageable will return n number of row (e.g. 5) for a page. It need two parameter pageIndex and numOfRowOnPage. But I didn't find matching corresponding field send by DataTable to server.

Another question is If I use pagination with server side processing will second request erase data from previous request. How DataTable behave with serveside pagination?

Answers

  • ashiersashiers Posts: 101Questions: 8Answers: 7
    edited July 2014

    When using DataTables in Serverside mode, the table is only aware of the data it currently holds, not all the records that conform to the query. When using DataTables on the Java platform, you should consider using JED. http://jed-datatables.ca/jed/examples/basicssp.jsp

This discussion has been closed.