You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by rik rik <sn...@hotmail.com> on 2007/12/18 11:47:15 UTC

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

RE: tree with modalwindow interaction

Posted by rik rik <sn...@hotmail.com>.
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: lindner@visionet.de> To: users@wicket.apache.org> > 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:snakerik@hotmail.com] > Gesendet: Dienstag, 18. Dezember 2007 11:47> An: users@wicket.apache.org> 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: users-unsubscribe@wicket.apache.org> For additional commands, e-mail: users-help@wicket.apache.org> 
_________________________________________________________________
Conosci Doretta? Contattala, è ora su Messenger!
http://www.doretta82.it/banner/index.html

RE: tree with modalwindow interaction

Posted by Stefan Lindner <li...@visionet.de>.
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:snakerik@hotmail.com] 
Gesendet: Dienstag, 18. Dezember 2007 11:47
An: users@wicket.apache.org
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org