-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All,
Currently I'm checking ZK with Spring MVC (WebFlow) , but got stuck on trying to trigger a view state on a "onOK" or "onDoubleClick" event. Using "self="@{action(login)}"" is the only way I know, and I'm trying to find a way to use zscript or attributes to trigger a view state.
Can anybody provide a sample on triggering a view state using "onOK" or "onDoubleClick" event.
I appreciate for any help.
Thank you
Okay, I checked documents for spring webflow from original Spring site. But didnt work on ZK....
so for now , I just did the simple way to pass my problem. Here is a sample
<zk> <zscript> void enter(){ Event e = new Event(Events.ON_CLICK,button); Events.sendEvent(e); } </zscript> <window onOK="enter()"> <textbox id="textbox" constraint="no empty" value="" width="160px" /> <button id="button" visible="false" self="@{action(gotoSomewhere)}" /> </window> </zk>
As you can see, I just click the hidden button to trigger the view....
I hope somebody can provide a better way using ZK spring webflow.
Asked: 2009-02-17 13:12:44 +0800
Seen: 774 times
Last updated: Feb 20 '09