pagination in liferaypagination in liferayhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=172513422024-03-28T10:38:14Z2024-03-28T10:38:14Zpagination in liferaymukesh kumarhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=172513412012-10-18T07:32:24Z2012-10-18T07:32:24ZHi All<br /><br />When i am clicking on next button in pagination it is going not displaying next five records . it is again going to the same page. <br />i have requirement of displaying next five records from the db .if i click on next button again it will display the next five records .<br />how to achieve this task. i am using the below code . <br /><br /><%@page import="com.liferay.portal.kernel.util.ListUtil"%><br /><%@ include file="init.jsp" %><br /><br /><%@page import="com.liferay.portal.kernel.util.Validator"%><br /><portlet:actionURL var="findURL" name="findBooks" /><br /><% List books = (List) request.getAttribute("result");<br />if(Validator.isNull(books))books = new ArrayList();<br />%><br /><form action="<%=findURL.toString()%>" name="fm" method="post"><br /><br /><br /><label>Book Title </label><br /> <input name="title" value=""/> <br /> <input type="submit" value="Search"/><br /></form><br /><liferay-ui:search-container delta="5" emptyResultsMessage="no-books-were-found"><br /><liferay-ui:search-container-results><br /><br /><%<br />results=ListUtil.subList(books,searchContainer.getStart(), searchContainer.getEnd());<br />total=books.size();<br />pageContext.setAttribute("results", results);<br />pageContext.setAttribute("total", total); %><br /></liferay-ui:search-container-results><br /><br /><br /><br /><liferay-ui:search-container-row className="com.test.model.Book" modelVar="book" ><br /><liferay-ui:search-container-column-text <br />name="Book Title"<br />property="name"/><br /><liferay-ui:search-container-column-text<br />name="Author"<br />property="author"/> <br /></liferay-ui:search-container-row><br /><liferay-ui:search-iterator/><br /></liferay-ui:search-container><br /><br />Can anybody help me plase .<br />Regards,<br />M