Keith - 2007-01-14

Hello,

I am experiencing and erratic pagination problem. I create a JAVA list of objects containing information to be displayed using Displaytag to display in 5 columns and is stored and retrieved as a session variable. The list could potentially contain as little as 27 objects (that represent Lucene search hits) when the issue occurs. The issue occurs when I display Lucene 'term highlights' for PDF documents ONLY. Other document types seem unaffected by the issue.

When the list is displayed, pagination takes place correctly displaying the first 10 items found with '27 items found' in the banners (top and bottom). When I click page 2, the banner changes to '28 items found' (increasing the total by one). When I click page 3, 'items found' remains '28 items found'. Clicking page 1 displays '27 items found' in the banner.

I've tried the following to resolve the issue with NO success :(

  1. Downloaded and added Displaytag-1.1
  2. Made displaytag in the JSP simple by removing allign, maxLength,and style

Here's my code:
<display:table name="sessionScope.list" pagesize="10" class = "displaytag" id = "row" export = "false" excludedParams="ajax" >
<display:column sortable="true" property="score" title="Score" style = "width:5%" maxLength = "5" />
<display:column sortable="true" title="File Name" media="html" style = "width:25%" maxLength = "50"><a href="file:///${row.path}" target="_blank">${row.fileName}</a></display:column>
<display:column sortable="true" property="lastModified" title="Last Modified" style = "width:10%" />
<display:column sortable="false" property="highlightString" title="Term Highlights" style = "width:60%" maxLength = "120" />
<display:column sortable="false" property="size" title="Size(KB)"/>
<display:setProperty name = "paging.banner.placement" value = "both" />
</display:table>

Any suggestions would be VERY helpful to me. Thank you in advance!!