Hi Ganesh,

ok, I've had a bit of time to 'fix' the problem.  Looks like the issue
has been dealt with at:

http://jira.codehaus.org/browse/DISPL-304 

but, the patch has not made it into source control (displaytag devs, pls
verify and pls update in source control).  I've attached the corrected
source, and the compiled version as well to make life easier.  All is
well after the patch is used.

cheers,
Fred



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
SourceForge.net
Sent: 30 August 2006 08:26
To: [EMAIL PROTECTED]
Subject: [displaytag-user] [displaytag - Help] Poblem in External
PaginationBanner


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3890570
By: athiganesh

  I'm facing a problem while using DisplayTag with External Sorting and
Pagination using partialList. The pagination no for {2} to {3} is not
working properly.
 
JSP Code:
 
<display:table sort="external" name="sessionScope.rrResultsList"
defaultsort="1"
requestURI="/rrSearchAction.do?actionIdentifier=toggleSortPage"
excludedParams="*"
pagesize="10" uid="tableId" partialList="true"
size="sessionScope.rrResultsSize">
<display:column property="resourceRequisitionForm.requisitionRefNo"
sortName="rr.resourceRequisitionForm.requisitionRefNo" title="RRF N0"
sortable="true"
/>
<!---some more columns-->
</display:table> 

 

Expected:

 Showing 11 to 20 of 22  << Previous | 123 | Next >>

Actual:  

   Showing 1 to 10 of 22  << Previous | 123 | Next >>

 

Action/Servlet Code for Sorting and Paging:

         String sortColumn = request.getParameter(new
ParamEncoder("tableId").encodeParameterName(TableTagParameters.PARAMETER
_SORT));
         String sortOrder = request.getParameter(new
ParamEncoder("tableId").encodeParameterName(TableTagParameters.PARAMETER
_ORDER))
;
         orderByClause = constructOrderByClause(sortColumn,sortOrder);
         int from = (Integer.parseInt(request.getParameter((new
ParamEncoder("tableId").encodeParameterName(TableTagParameters.PARAMETER
_PAGE
)))) - 1) *         ResourcePlannerConstants.PAGE_SIZE;
         rrResultsList
= getRRDelegate().searchRRF(whereClause,orderByClause,from);
 
request.getSession().setAttribute(ResourcePlannerConstants.RR_RESULTS_L
IST,rrResultsList);

 

displaytag.properties:

paging.banner.item_name=item

paging.banner.items_name=items

paging.banner.no_items_found=No Results found.

paging.banner.one_item_found=<div><font class="hiddenText">

paging.banner.all_items_found=<div><font class="hiddenText">

paging.banner.some_items_found=<div id="sectionPaging"
class="hiddenText">Showing {2} to {3} of {0}&nbsp;&nbsp;

paging.banner.full=<a href="{2}">&lt;&lt; Previous</a> | {0} | <a
href="{3}">Next &gt;&gt;</a></div>

paging.banner.first=&lt;&lt; Previous | {0} | <a href="{3}">Next
&gt;&gt;</a></div>

paging.banner.last=<a href="{2}">&lt;&lt; Previous</a> | {0} | Next
&gt;&gt;</div>

paging.banner.onepage=</font></div>

paging.banner.page.selected=<a class="sectionPageNumberCurrent">{0}</a>

paging.banner.page.link=<a href="{1}"
class="sectionPageNumberNormal">{0}</a>

paging.banner.page.separator=

# external sort and pagination

pagination.sort.param=sort

pagination.sortdirection.param=dir

pagination.pagenumber.param=page

pagination.searchid.param=searchid

pagination.sort.asc.value=asc

pagination.sort.desc.value=desc

pagination.sort.skippagenumber=true

 

Can somebody help me?

 

regards,

Ganesh.A

 


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=249318

------------------------------------------------------------------------
-
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

_____________________________________________________________

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.
_____________________________________________________________

Attachment: SmartListHelper.java
Description: SmartListHelper.java

Attachment: SmartListHelper.class
Description: SmartListHelper.class

-------------------------------------------------------------------------
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

Reply via email to