MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-116

TreeTable doesn't work properly while updating data

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tree Table
    • Labels:
      None

      Description

      The TreeTable component cannot handle updating data. If I have inputs instead of static text fields,
      and I try to modify any node's value, it doesn't work. I've noticed, that if I change a value
      of the first node in a certain column, the value goes to the last visible node of this particular
      column. This happens within treeColumn, and ordinary columns as well.

      I have prepared three simple test files (packed with zip), which will show you the problem:

      • Test.java (to map in the faces-config.xml as a 'test')
      • test.jsp
      • TreeItem.java (stores node value)

      When you run the example, please try to change following nodes' values and click "Send request" button
      to see, how the model behaves.

      Thank you in advance,
      Pawel

      1. treeTableTest.zip
        2 kB
        Pawel Czerwinski

        Activity

        Hide
        Pawel Czerwinski added a comment -

        Files for tests

        Show
        Pawel Czerwinski added a comment - Files for tests
        Hide
        Martin Marinschek added a comment -

        I am reducing this to major as it only effects one of the extended components.

        A patch would be very welcome here, just look at how other components are implemented!

        regards,

        Martin

        Show
        Martin Marinschek added a comment - I am reducing this to major as it only effects one of the extended components. A patch would be very welcome here, just look at how other components are implemented! regards, Martin
        Hide
        Daniel Ray added a comment -

        Did the patch get applied or is it available for download? I've tried the forceId mechanism but the input components within a treeColumn maintain the same id and name causing the last item to be selected instead of the individual selections.

        Many thanks.

        Show
        Daniel Ray added a comment - Did the patch get applied or is it available for download? I've tried the forceId mechanism but the input components within a treeColumn maintain the same id and name causing the last item to be selected instead of the individual selections. Many thanks.
        Hide
        Mike Kienenberger added a comment -

        There's no patch available yet. The status was changed in error.

        Show
        Mike Kienenberger added a comment - There's no patch available yet. The status was changed in error.
        Hide
        Martin Marinschek added a comment -

        This is not really easy to fix - I had a look into the Tree-component, and it doesn't really behave as it should.

        It lacks the row-handling that dataTable has, and I suppose that it is quite some work to get the tree up to the same level.

        regards,

        Martin

        Show
        Martin Marinschek added a comment - This is not really easy to fix - I had a look into the Tree-component, and it doesn't really behave as it should. It lacks the row-handling that dataTable has, and I suppose that it is quite some work to get the tree up to the same level. regards, Martin

          People

          • Assignee:
            Unassigned
            Reporter:
            Pawel Czerwinski
          • Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development