[ 
https://issues.apache.org/jira/browse/WICKET-801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kent Tong closed WICKET-801.
----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.3.0-beta2)
                   1.3.0-beta3

Just found that it has been fixed in trunk 
(http://www.nabble.com/Re%3A-DataTable%3A-incorrect-%27showing-x-to-y-of-z%27-p11844368.html)

> getTo() in NavigatorLabel is off by one
> ---------------------------------------
>
>                 Key: WICKET-801
>                 URL: https://issues.apache.org/jira/browse/WICKET-801
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>            Reporter: Kent Tong
>            Priority: Minor
>             Fix For: 1.3.0-beta3
>
>
> The code of getTo() is:
>               public int getTo()
>               {
>                       if (getOf() == 0)
>                       {
>                               return 0;
>                       }
>                       return Math.min(getOf(), getFrom() + 
> table.getRowsPerPage());
>               }       
> It should really be:
>               public int getTo()
>               {
>                       if (getOf() == 0)
>                       {
>                               return 0;
>                       }
>                       return Math.min(getOf(), getFrom() + 
> table.getRowsPerPage()-1);
>               }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to