You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Andreas Bürgel (Bucyrus)" <an...@de.bucyrus.com> on 2009/05/29 10:52:26 UTC
Re: Problem with dynamic insertion to Tree
PSkarthic wrote:
>
> Thanks for your reply
> i have been waiting for long time
>
>
> target.addComponent(this); also does not solved my problem.
>
> if i click a node the child is created under the node but doesn't expanded
> but when i click it second time then it expands but with two child.
>
For me
@Override
protected void onNodeLinkClicked ( AjaxRequestTarget pTarget, TreeNode
pNode) {
[...]
myNavigationTree.getTreeState().expandNode ( pNode);
[...]
}
solved that problem. Where pNode is the (sub-tree-) root node under which
new nodes have been added dynamically.
--
View this message in context: http://www.nabble.com/Problem-with-dynamic-insertion-to-Tree-tp21474815p23776501.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org