You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2011/08/08 20:38:27 UTC
[jira] [Created] (MYFACES-3270) DataModel.iterator cannot assume
getRowCount will be always set
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
[jira] [Resolved] (MYFACES-3270) DataModel.iterator cannot assume
getRowCount will be always set
Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
[ 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