1
是否有可能初始化一个窗口,我已经把它放入一个动态显示为.zul的页面中?在ZK中动态初始化窗口
我这样做:
<n:div id = "content">
<window id="content_wnd">
</window>
</n:div>
- 它是在主窗口
,我想,例如通过初始化 “/login_wnd.zul” 这个 “content_wnd” 窗口:
content_wnd = (Window)Executions.createComponents(
"/login_wnd.zul", null, null);
,并执行后,一个新的窗口出现在页面的底部,而不是在
<n:div>
</n:div>
块,其中放置了“content_wnd”。 这里有什么问题,以及将窗口动态放入页面指定位置的正确方法是什么?