selected Page number is not displayed in the paging banner -----------------------------------------------------------
Key: DISPL-211 URL: http://jira.codehaus.org/browse/DISPL-211 Project: DisplayTag Type: Bug Components: Paging/Sorting Versions: 1.0 Reporter: rajesh gopal Fix For: 1.0 Attachments: example-problem.jsp The Selected page number is not displayed in the paging banner. This happens when the selected page is the last page. This is due to the bug in the getPageNavigationBar() in SmartListHelper when calculating the startPage instead of startPage= Math.max(Math.min(currentPage - groupSize / 2, pageCount - groupSize), 1); it should be startPage=Math.max(Math.min(currentPage - groupSize / 2, pageCount - groupSize+1), 1); check the attached jsp and click the last and the problem will be replicated -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel