Add pagination to certificates in keystores
}
int numberOfPages = 0;
+ int noOfPageLinksToDisplay = 5;
String pageNumber = request.getParameter("pageNumber");
if (pageNumber == null) {
pageNumber = "0";
<div id="workArea">
<h3><fmt:message key="certificate.of.the.private.key"/></h3>
+ <carbon:paginator pageNumber="<%=pageNumberInt%>"
+ numberOfPages="<%=numberOfPages%>"
+ noOfPageLinksToDisplay="<%=noOfPageLinksToDisplay%>"
+ page="view-keystore.jsp" pageNumberParameterName="pageNumber"/>
+
<table class="styledLeft">
<thead>
<tr>
%>
</tbody>
</table>
- <paginationValue pageNumber="<%=pageNumberInt%>"
+ <carbon:paginator pageNumber="<%=pageNumberInt%>"
numberOfPages="<%=numberOfPages%>"
- page="view-keystore.jsp"
- pageNumberParameterName="pageNumber"
- parameters="<%=Encode.forHtmlAttribute(paginationValue)%>"
- resourceBundle="org.wso2.carbon.security.ui.i18n.Resources"
- prevKey="prev" nextKey="next"/>
+ noOfPageLinksToDisplay="<%=noOfPageLinksToDisplay%>"
+ page="view-keystore.jsp" pageNumberParameterName="pageNumber"/>
</div>
</div>
</fmt:bundle>
