I can't believe that nobody ever used this...
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?
Typo in prev. msg.
and it SHOULD evaluate to true, when tree node has been accessed for the first time.
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 (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? :)
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?