How to implement paging in JSF 1.1?
Share
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.
Create a DAO class which can return subsets of results by
firstrowandrowcount, create a bean which holds information about thefirstrowandrowcountand the current subset of data, create a JSF page which displays the data using<h:dataTable>and has a bunch of<h:commandButton>s to invoke paging actions (just do the math based onfirstrowandrowcount).You can find more information and code examples in this article, it even covers sorting.