[richfaces-issues] [JBoss JIRA] Closed: (RF-245) If there is only one item on the last page of a datatable, datascroller then the next buttons disappear

Aleksej Yanul (JIRA) jira-events at lists.jboss.org
Tue Sep 18 10:33:27 EDT 2007


     [ http://jira.jboss.com/jira/browse/RF-245?page=all ]

Aleksej Yanul closed RF-245.
----------------------------


> If there is only one item on the last page of a datatable, datascroller then the next buttons disappear
> -------------------------------------------------------------------------------------------------------
>
>                 Key: RF-245
>                 URL: http://jira.jboss.com/jira/browse/RF-245
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Mark Spritzler
>         Assigned To: Aleksej Yanul
>             Fix For: 3.0.1
>
>
> If you set your rows to any number, and the number of entries in the datatable is just one more than a multiple of that page, then the next buttons are not enabled, when they should be. Check...
> I noticed lines of code in UIDataScroller.java in the setControls method
> if ((rowCount - 1)<=(getFirstRow(dataTable)+getRows(dataTable))){
> Maybe the rowCount -1 and <= is the reason why you don't get the "forward" moving buttons when a new page gets created and it only has one row. so (rowCount-1) would equal 0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list