I have a new problem in inserting/adding nodes dynamically to tree.

When i inserted/added a node on click, the plus icon appears but it is not
expanded, that is it is not showing the child node i have tried tree.update
but not worked.

My Code
protected void onNodeLinkClicked(org.apache.wicket.ajax.AjaxRequestTarget
target,
                javax.swing.tree.TreeNode node){
                        
                        MyTreeNode nd = (MyTreeNode)node;
                        //nd.add(new DefaultMutableTreeNode("sample"));
                        System.out.println(node + "Ajax Clicked");
                        nd.insert(new MyTreeNode(node + "child"), 0);
                        
                        //this.modelChanged();
                        //this.nodeExpanded(node);
                        this.updateTree();
                        
                        
                }

Why it is happening like.



Thanks
Karthic
-- 
View this message in context: 
http://www.nabble.com/Wicket-tree-tp21410500p21472531.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to