[richfaces-issues] [JBoss JIRA] Created: (RF-9987) rich:treeModelRecursiveAdaptor - programmatic model able to support isLeaf() condition on Node

Lukas Fryc (JIRA) jira-events at lists.jboss.org
Thu Dec 9 10:47:53 EST 2010


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

                 Key: RF-9987
                 URL: https://issues.jboss.org/browse/RF-9987
             Project: RichFaces
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
    Affects Versions: 4.0.0.Milestone5
            Reporter: Lukas Fryc


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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list