myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (MYFACES-3270) DataModel.iterator cannot assume getRowCount will be always set
Date Mon, 08 Aug 2011 18:38:27 GMT
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


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

        

Mime
View raw message