Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-9987

rich:treeModelRecursiveAdaptor - programmatic model able to support isLeaf() condition on Node

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.Milestone5
    • Fix Version/s: 4.0.0.Milestone6
    • Component/s: None
    • Labels:
      None
    • Affects:
      Documentation (Ref Guide, User Guide, etc.)

      Description

      With current implementation, you can only model your class similarly to following class:

      public class Node {
      int number;
      List<Node> nodes;
      List<Integer> leaves;

      public Node(int number)

      { this.number = number; }

      public int getNumber()

      { return number; }

      public List<Node> getNodes()

      { return nodes; }

      public List<Integer> getLeaves()

      { return leaves; }

      }

      I suggest to introduce mechanism for defining tree model without the need for getLeaves() function and replacing it with boolean isLeaf() method.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nbelaevski Nick Belaevski
                Reporter:
                lfryc Lukáš Fryč
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: