-
FEATURED COMPONENTS
First time here? Check out the FAQ!
i have a label in a zul like this
<label id="avalaibleLabel" value="Avalaible" onClick='controller.doAction();'/>
but later i need sometimes delete the onClick
event how can i do this?
i am using MVC
any help is hugely appreciate..
Well I should add the eventlistener in the doAfterCompose
of your controller.
like this :
private EventListener buttonOnClickListener;
public void doAfterCompose (Component comp) throws Exception {
super.doAfterCompose(comp);
buttonOnClickListener = new EventListener() {
public void onEvent(Event event) throws Exception {
//your code
};
// with mvc this button you must still wired it in your class(I don't put that code here))
button.addEventListener("onClick",buttonOnClickListener);
}
public void removeEventListener() {
button.removeEventListener("onClick",buttonOnClickListener);
}
so simpel as that.
Greetz chill.
Asked: 2014-03-12 16:17:26 +0800
Seen: 10 times
Last updated: Mar 12 '14
Controller updating UI every minute
annotation porting from zk 3.6.2 to 6.5.3
How to customize "Processing..." message
JBoss AS 7.1 +Spring+ZK+DHtmlLayoutServlet
Portallayout, portalchildren ordering storage, possible bug
Sniffer Based Monitoring of ZK Apps
The server is temporarily out of service. (syntax error (SyntaxError))