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