Is there anybody to solve this.

I got Stuck here
:working:
I have a 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/Problem-with-dynamic-insertion-to-Tree-tp21474815p21475834.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to