MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-1505

varDetailToggler not functioning properly when sorting table

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.1.5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Assume a table which has expandable details. There are three rows: C, B and A.
      If you expand the details for A, and then sort on the name, (so that the rows are now A, B and C)
      then after sorting, it's the details for C which are expanded.

      This would be considered a minor bug except that if the expanded details include user input controls (e.g. text input). If the user expands the details and enters data for A, then sort, the user entered data is now applied to row C instead of A.

        Issue Links

          Activity

          Hide
          Stephen Cooper added a comment -

          As it turns out, sorting tables which have input components appears to be a dangerous thing to do in MyFaces. E.g. we have drop-down lists in our table, and if you enter data then sort (causing a form submission), the selections are applied to the wrong rows.

          Show
          Stephen Cooper added a comment - As it turns out, sorting tables which have input components appears to be a dangerous thing to do in MyFaces. E.g. we have drop-down lists in our table, and if you enter data then sort (causing a form submission), the selections are applied to the wrong rows.
          Hide
          Mike Kienenberger added a comment -

          You can try the patch I created for https://issues.apache.org/jira/browse/TOMAHAWK-961

          Show
          Mike Kienenberger added a comment - You can try the patch I created for https://issues.apache.org/jira/browse/TOMAHAWK-961
          Hide
          Leonardo Uribe added a comment -

          Duplicate of TOMAHAWK-961

          Show
          Leonardo Uribe added a comment - Duplicate of TOMAHAWK-961

            People

            • Assignee:
              Leonardo Uribe
              Reporter:
              Stephen Cooper
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development