Emilio Gumayagay
Emilio Gumayagay

Reputation: 69

Spring Thymeleaf server-side pagination

I've been trying to implement a sever-side pagination for my project using Spring and Thymeleaf, I was able to read things about how I can make this posible, one is through the use of dandelion datatables wherein I was able to make the integration successful but only in the client side. The second one i tried is using an example I found at http://www.opencodez.com/java/datatable-with-spring-boot.html which was successful but was a bit complicated. Other examples I find are from this and other sites are old, I need a recent example on how I could implement server-side pagination in Spring using thymeleaf and JPA. It would also a big help if it would involve the use of JQuery datatables because of its features.

Upvotes: 0

Views: 3013

Answers (1)

N4zroth
N4zroth

Reputation: 1366

I was able to do this with Spring-Data's pagination and the Thymeleaf dialect here https://github.com/jpenren/thymeleaf-spring-data-dialect/

Should do exactly what you want I think.

Upvotes: 1

Related Questions