As I can see you are using RF 4.0 and JSF 2.0. Am I right?
Look at the following link for the example which works correctly:
Probably your mistake is in using TreeNodeImpl instead of List<TreeNode> for the value of rich:tree.
sorry for not specifying it before. Yes, using JSF2.0 and RF 4.0
I tried by changing to List<TreeNode>, org.richfaces.model.TreeNode, but still it doesn't show anything..
No error messages or anything...
Is there any way of enabling debug mode on richfaces?
1) Are you sure that @Named("treebean") is enough for a declaration of the bean?
Try to use these annotations instead of yours
2) Try with h:outputText first to make sure that your bean is properly declared
Suspecting some problem with my implementation, I started with the tree example that comes with richfaces distribution.. had some hard time making it work but finally could display the tree on my JSF page. May be some problem with my implementation, ManagedBean and ManagedProperty annotations didn't really work for me. I had to change it to @Named and move the cdXmlDescriptors initialization that happens through ManagedProperty to my Java code.
Thanks for providing some very useful pointers!