[ https://jira.codehaus.org/browse/DISPL-672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283699#comment-283699 ]
Tony Gunter commented on DISPL-672: ----------------------------------- Maybe it's the double quotes inside your value? i.e. "<div class="toolbar" id="displayNavigator">{0} {1} found, displayed from {2} to {3}" should be ="<div class='toolbar' id='displayNavigator'>{0} {1} found, displayed from {2} to {3}" You can place these directly into the jsp to test if you want. Also, don't forget that you probably want to declare display strings for no items found, one item found, and all items found (for when only one page of results is returned): <display:setProperty name="paging.banner.no_items_found" value="<br/><span class='pagebanner'><strong> No {0} found.</strong> <br/><br/></span>"/> <display:setProperty name="paging.banner.one_item_found" value="<br/><span class='pagebanner'><strong> One {0} found.</strong> <br/><br/></span>"/> <display:setProperty name="paging.banner.all_items_found" value="<br/><span class='pagebanner'><strong> {0} {1} found, displaying all {2}.</strong><br/><br/></span>"/> <display:setProperty name="paging.banner.some_items_found" value="<br/><span class='pagebanner'><strong> {0} {1} found, displaying {2} to {3}.</strong><br/></span>"/> > paging problem > -------------- > > Key: DISPL-672 > URL: https://jira.codehaus.org/browse/DISPL-672 > Project: DisplayTag > Issue Type: Bug > Components: Paging/Sorting > Affects Versions: 1.1 > Reporter: Mauro > > Hi everyone, > I'm new in using displaytag. > I'm using 1.1 version and I have the following problem. > I have to fix a problem in code made by an other person. > We have to display a list of element paging it at 100 at 100 if the number of > elements is more than 100. > The problem is that in the page 1 I see "1250 items found, diplayed from 1 to > 100", but also in the second page, in the third and go on, I see the same > message, instead I'd like to see "...displayed from 101 to 200", "...201 to > 300" and etc. > I have seen that there is a property called "paging.banner.some_items_found" > in the displaytag.property file and it's used to show that message, but it > does not work correctly. > Can anyone help me to solve the problem? Thanks to all > Here are some parts of my code > in the jsp page > <display:table sort="external" > requestURI="/abc.do?mth=paging&sensible=${param.sensible}" > name="sessionScope.abcList" > id="item" > pagesize="100" > htmlId="abcTable" > class="dataGrid" > style="border:0px;display:inline" > excludedParams="*" > decorator="" > partialList="true" > size="pageScope.pagListConf.totalList" > offset="${pagListConf.offSet}" > > > in the properties file > paging.banner.some_items_found="<div class="toolbar" > id="displayNavigator">{0} {1} found, displayed from {2} to {3}" -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel