Hi all,
I'm using displaytag 1.1-el and just having some problems with the banner. I'm using external sorting and paging and I've set partial list to true. This is my tag:
<display:table name="requestScope.documentList" id="docGrid" class="GridFrame" requestURI="reports.html" cellpadding="5"
cellspacing="5" sort="external" defaultsort="2" pagesize="${pagingContext.rowsPerPage}" partialList="true" size="${pagingContext.totalRows}">
<display:setProperty name="css.th.ascending" value="order1" />
<display:setProperty name="css.th.descending" value="order2" />
<display:setProperty name="css.th.sortable" value="sortable" />
<display:column property="id" title="ID" headerClass="GridHeader"/>
<display:column property="shortname" title="Name" sortable="true" sortName="shortname" headerClass="GridHeader" href="" />
<display:column title="Document Type" sortable="true" sortName="documentTypeId" headerClass="GridHeader">
<c:out value="${documentTypeNames[docGrid.documentTypeId]}" />
</display:column>
<display:column property="modifiedDate" format="{0,date,dd/MM/yyyy kk:mm:ss}" sortable="true" sortName="modifiedDate" headerClass="GridHeader"/>
</display:table>
my display tag props have this set:
paging.banner.some_items_found=<div class="banner"><span class="pagebanner">{0} {1} found, displaying {2} to {3}.</span>
Currently, with a resultset of 8 rows and 5 items per page, I get:
on page 1:
8 items found, displaying 1 to 5
This is correct, but on page 2 I get:
8 items found, displaying 1 to 3
This should be displaying 6 to 8 so it is incorrect. Do I need to pass values to {2} and {3} and if so, what are they/where should they be set?
This looks similar to this problem, but it says a patch has already been submitted - http://jira.codehaus.org/browse/DISPL-304?page=comments#action_61141
Thanks in advance,
Fred
This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. If this email contains an offer, that should be considered as an invitation to treat.
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user