Hello fellow developer,i’ve getting problem to set the Timer method on ZK,default the method in my .zul page is:
<timer id="timer" delay="1000" repeats="false"
onTimer="response.sendRedirect('./Login.zul')" />
but the code is error(i think beacuse (‘./Login.zul’),if i try (\”./Login.zul\”),still show error),i try to build in my controller page like this:
private Timer timer=new Timer( 1000 );
public OTPController() {
timer.setRepeats( true );
timer.setAttribute( "onTimer","response.sendRedirect(\"./Login.zul\")", Timer.COMPONENT_SCOPE );
timer.start();
}
but nothing happen..:(
anybody can help me?
maybe i have to create java script method or something like that?
iam still trying to find the answer,ive read the ZK Docs but nothing can help..
Thanks for your attention and sorry for my bad english 😀
You can try the following example,