-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I have this problem. I want to create a global zul file that contains a function that is used in many other zul files. For example:
<![CDATA[ public void loadNavigatorPage(String sUrl) { desktop.getPage("index").setAttribute("navigatorindex", ""); Include inc = (Include) Path.getComponent("//index/navigator/"); inc.setSrc(sUrl); inc.invalidate(); } ]]>
then, i want to include it with <include src="/mypage.zul" /> in any file that should use it. But the function is not found by the pages. Is this possible or i must create a class in a package and then use it?
Thank you
Sorry, but i don't see any "src" property in <zscript> tag..
EDIT
It is possible i have an old version of zk installed..
Asked: 2011-02-22 03:30:36 +0800
Seen: 249 times
Last updated: Feb 23 '11