-
1. how to work with rich:tree?
ilya40umov Feb 6, 2011 1:33 PM (in response to devinderpal)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.
-
2. how to work with rich:tree?
devinderpal Feb 6, 2011 7:07 PM (in response to ilya40umov)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?
-
3. how to work with rich:tree?
ilya40umov Feb 7, 2011 12:48 AM (in response to devinderpal)1) Are you sure that @Named("treebean") is enough for a declaration of the bean?
Try to use these annotations instead of yours
@ManagedBean
@SessionScoped
2) Try with h:outputText first to make sure that your bean is properly declared
-
4. how to work with rich:tree?
devinderpal Feb 8, 2011 2:00 PM (in response to ilya40umov)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!