Re: tree2 problem with isLeaf() = true but getChildren().size 0

2007-01-02 Thread Andrew Robinson
There is some weird code in the tree renderer that I saw when I was trying to customize my own tree. In your case the weird code is a bug (I didn't look to far into this and am going from memory, so I may be mistaken). The code is something like: for (int i = 0; i node.getChildrenCount(); i++)

Re: tree2 problem with isLeaf() = true but getChildren().size 0

2007-01-02 Thread kal stevens
I also need to return a new list of children with size = 0 This just seemed like a horrible hack. And I was just wondering if it was supposed to work like this or if this is a bug? Does anyone know how I can get the source to the core library 1.1.13? My coworker used that version but did not get

Re: tree2 problem with isLeaf() = true but getChildren().size 0

2007-01-02 Thread kal stevens
Thank you, I will write a test case. I guess my question can be boiled down to this. Is it true or false that If treeNode.isLeaf() == true == treeNode.getChildren() / treeNode.getChildCount() should never be called? It seems like that should be an invariant. Thanks for the links, I will be

Re: tree2 problem with isLeaf() = true but getChildren().size 0

2007-01-02 Thread Andrew Robinson
at the same time isLeaf() treeNode.getChildCount() == 0 should be synonymous. On 1/2/07, kal stevens [EMAIL PROTECTED] wrote: Thank you, I will write a test case. I guess my question can be boiled down to this. Is it true or false that If treeNode.isLeaf() == true ==

Re: tree2 problem with isLeaf() = true but getChildren().size 0

2007-01-02 Thread kal stevens
That was what I was wondering. I did not think so. My use case is basically that I want to have a node that has children, but will not be toggle able in some situations. From the wiki http://wiki.apache.org/myfaces/Tree2 Whatever the implementation is you provide, at all times the condition