Thanks Stefan!
I removed from code collapseAll and expandAll, and I had problems with node 
selection,
but with them it works correctly
It seems that AjaxRequestTarget is the magic solution to some problems, but 
it's not too easy to obtain info about it and how to use it
 
Rik



> Subject: RE: tree with modalwindow interaction> Date: Tue, 18 Dec 2007 
> 13:28:58 +0100> From: [EMAIL PROTECTED]> To: [email protected]> > I am 
> one of the old Wicket 2.0 users and I use the following code> > 
> modalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback()> { 
> private static final long serialVersionUID = 1L;> public void 
> onClose(AjaxRequestTarget target) {> > ... your code ...> > // workaround for 
> 2.0 tree problem> treeTable.getTreeState().collapseAll();> // update tree 
> state> treeTable.getTreeState().selectNode(newNode, true);> 
> treeTable.updateTree(target);> // workaround for 2.0 tree problem> 
> treeTable.getTreeState().expandAll();> > May the AjaxRequestTarget be with 
> you> > Stefan> > > -----Ursprüngliche Nachricht-----> Von: rik rik 
> [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 18. Dezember 2007 11:47> An: 
> [email protected]> Betreff: tree with modalwindow interaction> > Hi,> 
> I've searched in the mailing list, but I haven't found a similar problem..> I 
> have a LinkTree, when the user clicks on a node, a ModalWindow must be shown 
> and depending on the choice of the user the previous node of the tree should 
> be re-selected (typically when the user chooses "cancel") My code doesn't 
> work properly, because previous node is not re-selected Has anyone had the 
> same problem?> Is there a snipplet can I use?> Thanks to all> > Rik> > > 
> _________________________________________________________________> Conosci 
> Doretta? Contattala, è ora su Messenger!> 
> http://www.doretta82.it/banner/index.html> > 
> ---------------------------------------------------------------------> To 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
> [EMAIL PROTECTED]> 
_________________________________________________________________
Conosci Doretta? Contattala, è ora su Messenger!
http://www.doretta82.it/banner/index.html

Reply via email to