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

Leonardo Uribe resolved MYFACES-3270.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.2
                   2.0.8

> DataModel.iterator cannot assume getRowCount will be always set
> ---------------------------------------------------------------
>
>                 Key: MYFACES-3270
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3270
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.8, 2.1.2
>
>
> The current implementation of DataModel.iterator assume getRowCount will 
> return a valid value, but the implementation of ResultSetDataModel returns -1 
> because the number or rows is unknown in this case, and that's valid.
> Instead, isRowAvailable() and setRowIndex() should be used to iterate over 
> the data.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to