Uploaded image for project: 'MyFaces Tobago'
  1. MyFaces Tobago
  2. TOBAGO-1107

Using a TreeState object instead of "expanded" and "marked" in the tree node tag

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0-beta-1, 2.0.0
    • Core
    • None

    Description

      The expanded and marked state was saved in the tree model directly since Tobago 1.5.0.
      But it turns out, that has some disadvantages:

      • to handle the state, you may have to write extra code to save the state
      • usually this code is only for presenation (expanded), so you mix data and presentation

      So introducing the TreeState. The TreeState shoud be independet from tree model implementations. It saves the path a node, instead of the node themself. This is different to the TreeState of Tobago 1.0.x.

      Attachments

        Activity

          People

            lofwyr Udo Schnurpfeil
            lofwyr Udo Schnurpfeil
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: