-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3685451
By: nobody
I create a window says mainWin with a menu bar, on the menu item onClick event I create a new component load a list.zul file with a window says listWin and append to mainWin. In list.zul I have an event which try to change sth.
Here is the code:
event.getTarget().getRoot().getFellow("listWin");
this getFellow throws out Exception that fellow "listWin" can not be found.
So I have to use event.getTarget().getNameSpaceOwner().getFellow("listWin"),
it works. But I believe it is dangerous because I can not finalize the nameSpaceOwner if I want to add more components to mainWin or listWin. Can anybody teach me sth?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3685792
By: henrichen
I am not quite understand what you mean by
"it is dangerous because I can not finalize the nameSpaceOwner if I want to add more components to mainWin or listWin."
Can you be more specific? What do you mean by "finalize"?
/henri
Asked: 2006-04-13 19:53:00 +0800
Seen: 260 times
Last updated: Apr 14 '06