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

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Tue Dec 21 14:45:19 EST 2010


     [ https://issues.jboss.org/browse/RF-9987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski updated RF-9987:
-------------------------------

    Assignee: Nick Belaevski


> 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
>            Assignee: Nick Belaevski
>             Fix For: Future_4.X
>
>
> 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