-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a button in zul file, i want it to be clicked in a java file.
How can i do that???
something like Button save = new Button(); b.Click();
Thanks
Hi hello2222,
You can try using send Event or post event:
http://www.zkoss.org/doc/devguide/ch05s03.html
try this
<window title="My First Window" border="normal" width="200px"> <button id="btn1" label="1st" onClick='alert("click "+self.label)'/> <button id="btn2" label="2nd" onClick='alert("click "+self.label)'/> <button label="post" onClick='Events.postEvent("onClick",btn1,null)'/> </window>
Asked: 2008-10-21 02:45:20 +0800
Seen: 395 times
Last updated: Oct 22 '08