0

Fellow component not found with getFellow

asked 2006-08-03 15:04:21 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3851257

By: nobody

Here's the problem :

I have a window with a sub-window :
<window id="main" use="myclasses.MainWindow">
<window id="followcourse">
</window>
</window>

in a class, I want to get the window followcourse from the window main :
(Window) main.getFellow("followcourse"):
it works with the versions previous of zk 2.0 but it does not work anymore with version 2.x

What can I to to make it work ?

thanks

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-08-04 09:40:06 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3852561

By: henrichen

I cannot replicate your issue. The following code works on demo site (2.1.0 RC2).

<window id="main" title="title">
<window id="followcourse" title="inner">
</window>
<zscript>
Window win = main.getFellow("followcourse");
win.appendChild(new Label("Hi"));
</zscript>
</window>


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-08-03 15:04:21 +0800

Seen: 1,128 times

Last updated: May 14 '10

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