0

Window events in java

asked 2012-08-27 11:13:52 +0800

boazb gravatar image boazb
12

I have a pattern reoccurring in my zul files :

<window id=...>
<zscript>
doA()
</zscript>
.............. zul content .......
<zscript>
doB()
<zscript>
</window>

the doB() is accessing items in the zul content
I wish to generalize it so I will use it this way:

<window use="MyWindow" id=.....>
.............. zul content .......
</window>

So which events do I overwride to run doA & doB ?

Thanx

Boaz

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-08-28 09:26:58 +0800

Steva77 gravatar image Steva77 flag of Italy
1014 3
http://www.research.softe...

Hy,
avoid scripts in your page and use java to control the page, like explained in

http://books.zkoss.org/wiki/ZK_Developer's_Reference/MVC/Controller/Composer

In your case

<window use="MyWindow" id=..... apply="MyComposer">
.............. zul content .......
</window>

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: 2012-08-27 11:13:52 +0800

Seen: 77 times

Last updated: Aug 28 '12

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