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 adding to a leaf node, you will want to call
getTreeState().expandNode(node) on the parent after the call on
DefaultTreeModel and before updateTree.

best,
jim

On 6/4/07, NYSophia <[EMAIL PROTECTED]> wrote:
>
> 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 delete
> a node.     I was wondering if anyone had accomplished this or attempted by
> found it problematic.
> --
> View this message in context: 
> http://www.nabble.com/Tree-with-add-delete-edit-nodes-tf3866796.html#a10954856
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to