0

adding an observer in zul-file

asked 2006-05-08 21:34:46 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: nobody

hello,
i've got some more questions:

how can i call
"contentWindow.addObserver(leftNavi);"

i dont get a reference to leftNavi, allthough i try to call addObserver(...) within the leftNavi-block.

can i solve this by using the scope-contant correctly?

thank you for help, please see code below:

<hbox>
<tabbox id="leftNavi" mold="accordion" width="100px">
<tabs>
<tab label="Rechnungen" id="rg"/>
<tab label="Kunden" id="kd"/>
</tabs>
<tabpanels>
<tabpanel use="view.tabs.RgTabPanel" id="rgTabPanel"/>
<tabpanel use="view.tabs.KdTabPanel" id="kdTabPanel"/>
</tabpanels>
</tabbox>
<window use = "view.ContentWindow" id = "contWindow" >
<zscript>
contWindow.setWidth("350px");
contWindow.setHeight("300px");
contWindow.setLeft("25px");

#
#here is
#contentWindow.addObserver(leftNavi);
#
contWindow.setTop("25px");
contWindow.setStyle("background-color:#EEEEEE; position:relative;");
contWindow.setBorder("normal");
</zscript>
</window>
</hbox>



delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-05-09 01:07:08 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: henrichen

It has something to do with ZK's Id Space concept. Page and Window are a kind of Id Space while other components are NOT. For details please refer the Developer's Guide.

To get reference to leftNavi, try

conWindow.getPage().getFellow("leftNavi");

/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-05-08 21:34:46 +0800

Seen: 324 times

Last updated: May 09 '06

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