-
1. Re: recursiveTreeNodesAdaptor demo doesn't work
j-pro Sep 25, 2007 10:39 AM (in response to j-pro)I can't believe that nobody ever used this...
-
2. Re: recursiveTreeNodesAdaptor demo doesn't work
maksimkaszynski Sep 25, 2007 11:09 AM (in response to j-pro)Bun? seara, J-Pro!
I looked over the demo, and debugged it.
I works, I actually cannot understand what problem you have.
The condition you mentioned was intended to lazily initialize children of node currently opened, and it SHOULD evaluate to true, when tree node hasn't been accessed for the first time.
After that srcRoots are populated with empty array.
Example from tree demo populates tree from "/WEB-INF/src" folder. Do you have one? -
3. Re: recursiveTreeNodesAdaptor demo doesn't work
maksimkaszynski Sep 25, 2007 11:10 AM (in response to j-pro)Typo in prev. msg.
and it SHOULD evaluate to true, when tree node has been accessed for the first time. -
4. Re: recursiveTreeNodesAdaptor demo doesn't work
j-pro Sep 25, 2007 1:41 PM (in response to j-pro)You're right, I had no such dir... things are easier than I thought. Sorry for bothering with such a foolish reason.
I've found why this condition was giving false... Scope of managed beans for that tree was "application", but I run debugger not from the very first start of the app... That's why it showed:"srcRoots FileSystemNode[0] (id=342)" and bypassed the if block... getResourcePaths gave no errors. I see now.
Sorry again for bothering, it's my fault. And thanks for your help, Maxim.
P.S.: about "Buna seara" :) I know romanian just a little, actually I'm russian, just live here in Moldova :) I wonder where you know this language from? :) -
5. Re: recursiveTreeNodesAdaptor demo doesn't work
j-pro Sep 25, 2007 1:51 PM (in response to j-pro)Just wanted to ask one thing... I have this tree alongside rich:scrollableDataTable. And the width of the tree is more then 200px, which I specified in width attribude. So my nodes are just behind the dataTable... Doesn't this tree has anything like dynamically adjust it's width or something while opening new nodes?
Thanks