0

Getting values from a popup window

asked 2014-08-20 17:11:46 +0800

agazerboy gravatar image agazerboy
1 1

updated 2014-08-20 20:47:26 +0800

If I open a popup window then how could I get the values of the popup components? I am new to ZK so please excuse my limited knowledge. I googled before jumping here. I can access a button after loading Zul file.

ComponentAgent btn = desktop.query("#btn");

If I open a popup window (win id win1) and try access the btn on popup window zats give me a test failure. Any suggestion?

I also tried the following code but it returns null:

ComponentAgent btn = desktop.query("#win1").query("#btn");
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-08-22 09:00:09 +0800

Darksu gravatar image Darksu
1991 1 4

Hello agazerboy,

A good example of how to use a pop up window can be found at the following url:

http://www.zkoss.org/zkdemo/gettingstarted/dialogpopup

But based on your description you probably need to create a new window with bind composer, which will be associated to a controller in order to pass, and send back parameters.

Let me know if you need more information.

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2014-08-20 17:11:46 +0800

Seen: 14 times

Last updated: Aug 22 '14

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