How can I use a Widget to edit a CellTree node?

2010-11-03 Thread David Pinn
When the user edits a node of my CellTree, I want to inject a composite widget into the tree at that point to handle the editing. To experiment with this, I created the following custom TextArea sub- class: class MyTextArea extends TextArea { public static MyTextArea addToElement(Element

Re: How can I use a Widget to edit a CellTree node?

2010-11-03 Thread John LaBanca
GWT doesn't support what you are trying to do. You cannot add a widget to an arbitrary element that is already a descendant of a widget. There are two alternatives that could work. You could create a Cell that switches to an editable via. See EditableTextCell for an example. Alternatively,