[ http://jira.codehaus.org/browse/DISPL-232?page=all ]
     
fabrizio giustina closed DISPL-232:
-----------------------------------

    Resolution: Fixed

test added and fix committed for the last-page problem

> paging.banner.full: {6} is not the total number of pages
> --------------------------------------------------------
>
>          Key: DISPL-232
>          URL: http://jira.codehaus.org/browse/DISPL-232
>      Project: DisplayTag
>         Type: Bug
>   Components: Configuration
>     Versions: 1.0
>      Fix For: 1.1

>
>
> {6} in the configuration item paging.banner.full does not display the total 
> number of pages (as it should according to the documentation), but the number 
> of page links displayed in the banner.
> Following is the correction for Pagination.java:
>         Object[] pageObjects = {
>             numberedPageString,
>             ((Href) this.href.clone()).addParameter(this.pageParam, 
> getFirst()),
>             ((Href) this.href.clone()).addParameter(this.pageParam, 
> getPrevious()),
>             ((Href) this.href.clone()).addParameter(this.pageParam, 
> getNext()),
>             ((Href) this.href.clone()).addParameter(this.pageParam, 
> getLast()),
>             this.currentPage,
>             /* (MVL) corrected: should be number of pages: new 
> Integer(pages.size()) */ 
>             this.isLast() ? this.currentPage : this.lastPage };

-- 
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 the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to