Might be a big. Jira issue with attached quickstart project to reproduce it would be helpful.
-Matej On Mon, Oct 27, 2008 at 11:24 AM, Hannes Schubert <[EMAIL PROTECTED]> wrote: > Hi all, > > if I call removeNodeFromParent for the last (and only) child node of a > parent node on second or deeper level in a TreeTable, Wicket throws an > IllegalStateException like this: > > ERROR - RequestCycle - Cannot remove [MarkupContainer > [Component id = 11, page = <No Page>, path = 11.AbstractTree$TreeItem]] from > null parent! > java.lang.IllegalStateException: Cannot remove [MarkupContainer [Component > id = 11, page = <No Page>, path = 11.AbstractTree$TreeItem]] from null > parent! > at org.apache.wicket.Component.remove(Component.java:2204) > at > org.apache.wicket.markup.html.tree.AbstractTree.removeItem(AbstractTree.java:1441) > at > org.apache.wicket.markup.html.tree.AbstractTree.treeNodesRemoved(AbstractTree.java:832) > at > javax.swing.tree.DefaultTreeModel.fireTreeNodesRemoved(DefaultTreeModel.java:530) > at > javax.swing.tree.DefaultTreeModel.nodesWereRemoved(DefaultTreeModel.java:310) > at > javax.swing.tree.DefaultTreeModel.removeNodeFromParent(DefaultTreeModel.java:244) > > It runs well if child node is not the last child of parent. Before calling > removeNodeFromParent() the instance method TreeNode.getParent() always > returns the valid instance of DefaultMutableTreeNode. So tree seems to be > intact for me... > > Any hints? > > Best regards > Hannes Schubert > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >