-
1. Dynamic Tree with context menu Example
mp911de Feb 10, 2011 6:38 AM (in response to veerendra)Hi Veerendra,
in your first Post you actually add Nodes dynamically:
TreeNodeImpl nodeImpl = new TreeNodeImpl();
nodeImpl.setData(value);
node.addChild(new Integer(counter), nodeImpl);
If you add in an action a TreeNodeImpl to your parent or remove a Child from a Parent node, you're done with your Task. If you use AJAX for add/remove, make sure the tree's ID is in the reRender-Property of your a4j Component.
Best regards,
Mark
-
2. Dynamic Tree with context menu Example
veerendra Feb 12, 2011 12:40 AM (in response to mp911de)Hi Mark,
Thank you for the reply. I am looking for implementation of context menu for tree node. In the example I am using properties file to construct the tree. But, I need to form the tree with data from Database using Hibernate. If any examples are there, Please let me know.
Regards,
Veerendra