On 8/12/06, Ach <[EMAIL PROTECTED]> wrote:
I have a tree2 component with checkboxes on nodes. And a add button in my
form and want to add a childeren to checked node when I press ADD button.
I do not know how to know which node is checked and how to generate the
code for adding child node. Your help is so appreciated friends.
To add a child, your node simply needs to return it when getChildren is called.
So how to add a child depends on your implemenation of Node.getChildren().
I don't know how you can determine which node is checked -- again that
probably depends on how your application set up the node.
I do know that you can determine which node is clicked like this:
Node node = (Node)treeUI.getNode();
where binding="#{yourBean.treeUI}"