Methods zk-can';t include.zul中的访问方法

Methods zk-can';t include.zul中的访问方法,methods,include,zk,Methods,Include,Zk,当我尝试下面的代码时(正如Ryan Wu在这里建议的): 文件wind.zul看起来像 <?page title="new page title" contentType="text/html;charset=UTF-8"?> <zk> <window id="wind" title="new page title" border="normal" visible="false" width="300px"> New Content Here! </wi

当我尝试下面的代码时(正如Ryan Wu在这里建议的):

文件wind.zul看起来像

<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window id="wind" title="new page title" border="normal" visible="false" width="300px">
New Content Here!
</window>
</zk>

这里有新内容!
有人能告诉我怎么了吗?谢谢…

根据 我需要: 1.使用“路径” 2.为主窗口添加一些ID(f.i.ID=“w0”) 并在index.zul中写入类似的内容(文件wind.zul未更改)


谢谢我自己:))

inc$wind.doModal();'' : Attempt to resolve method: doModal() on undefined variable or class name
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window id="wind" title="new page title" border="normal" visible="false" width="300px">
New Content Here!
</window>
</zk>
<?page title="Auto Generated index.zul"?>
<window id="w0" title="Hello World 2!!" border="none" width="600px">    
    <include id="inc" src="/zk/wind.zul" mode="instant" />
    <button label="do it" onClick='Path.getComponent("/w0/inc/wind").doModal()' />
</window>