Re: [Wicket-user] Tree with add/delete/edit nodes

2007-06-06 Thread James McLaughlin
Hello, You can do this through the ITreeState (tree.getTreeState().getSelectedNodes ()). Also, you can register with the TreeState as an ITreeStateListener and implement the nodeSelected(TreeNode node) method. best, jim On 6/6/07, NYSophia <[EMAIL PROTECTED]> wrote: > > Thank you. That was very

Re: [Wicket-user] Tree with add/delete/edit nodes

2007-06-05 Thread NYSophia
Thank you. That was very helpful. I am trying to get it to add a node as a child of the currently selected node. I will let you know how it goes. I don't really have urls or code I can share. I do have a brain dead simple quickstart I created to determine if a bug was in my code or wicket (mi

Re: [Wicket-user] Tree with add/delete/edit nodes

2007-06-04 Thread James McLaughlin
I don't really have urls or code I can share. I do have a brain dead simple quickstart I created to determine if a bug was in my code or wicket (mine, obviously :)). Hope this helps: http://bones.homelinux.org/wicket/quicktree.jar You will want to look at SimpleTreePage.java best, jim On 6/4/07

Re: [Wicket-user] Tree with add/delete/edit nodes

2007-06-04 Thread evan2nave
Hi, This sounds great. Would you mind posting the java code and html file (or relevant snippets) for a page that accomplishes this? I'm still very new to wicket, and the example would be very helpful! Thanks, -Evan James McLaughlin-3 wrote: > > Hello, > I've just done this, works like a charm

Re: [Wicket-user] Tree with add/delete/edit nodes

2007-06-04 Thread James McLaughlin
Hello, I've just done this, works like a charm. Use a DefaultTreeModel for your tree, and when it comes time to insert / remove nodes, just use the appropriate methods on DefaultTreeModel. If you are doing this with an ajax tree, you will want to call updateTree(AjaxRequestTarget) after. If you are

[Wicket-user] Tree with add/delete/edit nodes

2007-06-04 Thread NYSophia
I have searched the archive and the last time someone asked about this seems to be 2006. We are new to wicket and were impressed with the Editable tree table example. We wanted to try to create a tree display that lets the users edit the nodes of the tree by adding a button to add a child node or