Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3270

DataModel.iterator cannot assume getRowCount will be always set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.8, 2.1.2
    • JSR-314
    • None

    Description

      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.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: