0

以下のコードを試してみると (質問に対してRyan Wu がここで提案しているように):

<?page title="Auto Generated index.zul"?>
<window title="Hello World 2!!" border="none" width="600px">    
    <include id="inc" src="/zk/wind.zul" mode="instant" />
    <button label="do it" onClick="inc$wind.doModal()" />
</window>

ボタンを押した後、次のエラーが表示されます。

inc$wind.doModal();'' : Attempt to resolve method: doModal() on undefined variable or class name

ファイル 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>

誰かが何が間違っているのか教えてもらえますか? ありがとう...

4

1 に答える 1