Dear all

I have some problem on displaytag paging. I cannot find method to set paging 
setting as http://displaytag.sourceforge.net/11/ which will display First, 
Previous, Next, Last and also page 1, 2, etc. Surfing from net, I found that 
displaytag allow to create properties file to control paging format. I can 
create next and previous action properly but cannot display desirable output 
mentioned. Please find below coding fragment for your reference.

<display:table name="tableName"  uid="Table1" pagesize="20" sort="external" 
       requestURI="${windowUrl}" partialList="true" size="200" 
       decorator="com.abc.portal.web.displaytag.TableDecorator" 
       class="portal-display-table-2"  excludedParams="*">
       
<display:column property="datetime" format="{0,date,dd/MM/yyyy}" 
      titleKey="table1.label.datetime" 
      sortable="true" sortName="datetime"
      headerClass="portal-display-th-first"
      class="portal-display-td-first"
      style="width:100px;"  />
      
<display:column titleKey="table1.label.headline" 
      sortable="true" sortName="headline" 
      class="portal-display-td-text"/>

   <a  
href="javascript:window.open('${detailPortletUrl}&id=${table1.newsId}&locale=${table1.locale}','winPopup','height=600,width=800,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no',null,"

class="portal-link-7">${table1.headline}</a>
  </display:column>
  
</display:table>

displayTag.properties

paging.banner.first=<table style="width:100%" 
class="portal-display-paging"><tr><td align="right"><a 
href="{3}">Next</a></td></tr></table>
paging.banner.full=<table style="width:100%" 
class="portal-display-paging"><tr><td align="right"><a 
href="{2}">Previous</a>&nbsp;|&nbsp;<a href="{3}">Next</a></td></tr></table>
paging.banner.last=<table style="width:100%" 
class="portal-display-paging"><tr><td align="right"><a 
href="{2}">Previous</a></td></tr></table>

Also, any reference can refer to the meaning of {1}, {2} etc in properties 
file? 



Any help would be appreciate, thanks.

regards

wayne


      

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to