0

modal window怎么与主window进行交互?

asked 2009-10-03 16:21:11 +0800

cryandaguo gravatar image cryandaguo
72 2

比如有个listbox列表很多数据,需要添加或者修改一条数据时,打开一个modal window去修改该条明细,
修改完明细以后, 需要收集modal window中form的数据然后关闭modal window.
然后更新主window中的listbox中的数据
modal window和主window对应2个不同的zul file 各自对应其各自的java file
那我该怎么样在关闭modal window的事件中与主window的事件进行交互呢?

delete flag offensive retag edit

3 Replies

Sort by » oldest newest

answered 2009-10-05 09:05:53 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

modal window也是要加到page裡面,你可以給Page ID跟Component ID來找對應的Window.

link publish delete flag offensive edit

answered 2009-10-09 01:26:17 +0800

adam4891288 gravatar image adam4891288
657 1 5

我也遇到過類似問題,已解決。
具體做法如下:
1.使用Executions.getCurrent().getDesktop()取得桌面。
2.使用desktop.getPages()取得桌面內所有頁面,是個Collection。
3.在該頁面Collection中根據ID來尋找你想要控制的Window即可。

link publish delete flag offensive edit

answered 2009-10-11 05:05:20 +0800

cryandaguo gravatar image cryandaguo
72 2

十分感谢jumperchen 和 adam4891288
该方法确实好用, 又学到一招

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: 2009-10-03 16:21:11 +0800

Seen: 389 times

Last updated: Oct 11 '09

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