0

get Component by path

asked 2006-05-05 00:39:42 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: gladiator

the following is a page zul file that's included by other zul file. I try to obtain the component by looking up its id.
<?page id="test"?>
<zscript>
Component c=Path.getComponent("//test/vb/regimenGB");
</zscript>
<zk>
<vbox id="vb">
<groupbox id="regimenGB" mold="3d" width="80%"> </groupbox> </vbox> </zk>

can't load the page, it gives the generic error:
com.potix.web.servlet.ServletException: Unable to evaluate an EL expression:
${u:redraw(root, null)}
any idea?
thanks

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2006-05-05 06:02:30 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: henrichen

div is not a Id Space owner while page is. Path is based on the Id Space, not component structure.

Path.getComponent("//test/regimenGB");

/henri

link publish delete flag offensive edit

answered 2006-05-05 06:03:25 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: henrichen

And zscript is evaluate sequencially. The regimenGB Groupbox is not created yet when the zscript is evaluated.

/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-05 00:39:42 +0800

Seen: 449 times

Last updated: May 05 '06

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