-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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>
Asked: 2012-08-27 11:13:52 +0800
Seen: 77 times
Last updated: Aug 28 '12