0

The component created in runtime problem

asked 2006-04-13 19:53:00 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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?


delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-04-14 01:51:09 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-04-13 19:53:00 +0800

Seen: 260 times

Last updated: Apr 14 '06

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More