MyFaces Tobago
  1. MyFaces Tobago
  2. TOBAGO-570

<tc:sheet> selection is not preserved in sortable sheet

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.13, 1.0.14
    • Fix Version/s: 1.0.15, 1.5.0
    • Component/s: Core
    • Labels:
      None

      Description

      I have an <tc:sheet> with sortable <tc:column sortable="true"> elements where a single row can be selected. Lets image the sheet has 5 rows with the ids 1 to 5. I select the 4th row with the id 4. After that I click on the column to sort the ids descending. After sorting the 4th row is still selected, but because of the sorting the id of the selected row is 2. What I expected to happen, is that the row with the id 4 is still selected.

      1. TOBAGO-570.diff
        3 kB
        Helmut Swaczinna

        Activity

        Hide
        Helmut Swaczinna added a comment -

        Problem solved.
        Remark: the selected rows are only restored when there's no SortActionListener set.
        With a SortActionListener you have to this on your own.

        Show
        Helmut Swaczinna added a comment - Problem solved. Remark: the selected rows are only restored when there's no SortActionListener set. With a SortActionListener you have to this on your own.
        Hide
        Volker Weber added a comment -

        patch applied

        Show
        Volker Weber added a comment - patch applied
        Hide
        Volker Weber added a comment -

        please merge the patch to 1.0.x branch

        Show
        Volker Weber added a comment - please merge the patch to 1.0.x branch
        Hide
        Volker Weber added a comment -

        needs merge to 1.0.x

        Show
        Volker Weber added a comment - needs merge to 1.0.x
        Hide
        Bernd Bohmann added a comment -

        merged to 1.0.x

        Show
        Bernd Bohmann added a comment - merged to 1.0.x

          People

          • Assignee:
            Bernd Bohmann
            Reporter:
            Tobias Glensk
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development