I want to implement pagination in Play FrameWork , Is there any tutorial or example for this
I have explore there website and went through the tutorial but not able to implement pagination
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have implemented many pages in
play!using the Play pagination module. It’s working fine with no issues. I’ll give you an idea of what I did, below.First I declare the
ValuePaginatorthat points to a result set (in my case aMYSQLquery)Then render the Paginator instance to use it in the view
In the view, I used the following syntax
Suppose my SQL query looks like this
then in that case
r[0]will take the value of names,r[1]will take the value of id’s andr[2]will take the value of addresses and render this data in 3 different columns in a table.Hope this helps.