Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-263

SortableModel.getRowKey() returns sortedIndex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1-incubating-core-SNAPSHOT
    • None
    • None
    • ALL

    Description

      In SortableModel class, getRowKey() returns sorted index of the current row. For the same row object, different sorting can change its sorted index and hence change its rowKey.

      getRowKey() should return base index, because base index of a row object will not be changed by sorting. If we change getRowKey(), we need to change setRowKey() too.

      Attachments

        1. RowKeyFix.patch
          4 kB
          John Fan
        2. RowKeyFixWithAutoBoxing.patch
          5 kB
          John Fan

        Activity

          People

            adamwiner Adam Winer
            johnfan John Fan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: