-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I'm trying to have a javascript function trigger a server-side event:
function whatever() { zAu.send(this, 'onWhatever', null); }
on the server-side i have a composer with the following:
public void doAfterCompose(Component comp) throws Exception { comp.addEventListener("onWhatever", new EventListener() { @Override public void onEvent(Event event) throws Exception { Messagebox.show("Epic!"); } }); }
It's not working at all, client hangs. Ideas?
Thank you! I was missing the component id as well (instead of 'this')
good job, thanks
Try :
zAu.send(new zk.Event(zk.Widget.$(this), 'onWhatever',[1,2]));
Greetz chill.
Asked: 2015-04-24 08:55:35 +0800
Seen: 32 times
Last updated: Apr 24 '15