0

Using ZK with Spring MVC

asked 2009-02-17 13:12:44 +0800

JoseLuis gravatar image JoseLuis
18

updated 2009-02-18 01:30:44 +0800

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

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-02-18 03:57:47 +0800

JoseLuis gravatar image JoseLuis
18

updated 2009-02-18 03:59:03 +0800

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.

link publish delete flag offensive edit

answered 2009-02-20 01:25:20 +0800

PeterKuo gravatar image PeterKuo
481 2

It's an implementation issue,
Please post it to feature request.

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: 2009-02-17 13:12:44 +0800

Seen: 774 times

Last updated: Feb 20 '09

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