0

zk.auSend not called on composer

asked 2014-05-08 13:26:29 +0800

javiut gravatar image javiut flag of Venezuela, Bolivarian Republic of
90 1 5

updated 2014-05-08 13:27:16 +0800

i have a window like this

<window id="win" apply='/.../..../MyComposer'>

i need to send a event to ZK throught javascript i have the composer like this

public class MyComposer extends GenericForwardComposer<Window>
{
   public void onEventSent$win(final Event event){}
}

later i try to called using this code i also try several variations noone seems to work.

function send(id){zAu.send(new zk.Event(zk.Widget.$('$win'),'onEventSent',id));return;}

i have another composer which responds events from the client and works OK maybe must be only one composer who responds request from clients per APP. i guess not.

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-05-26 08:15:26 +0800

cor3000 gravatar image cor3000
4406 2 7
ZK Team

please also check the ZK client side reference - "client-side" firing about that topic.

Maybe you are just missing the toServer: true as stated there

zAu.send(new zk.Event(wgt, "onFoo", {foo: 'my data'}, {toServer:true}));

You should also check (e.g. in chrome developer tools - network tab) if the event is actually being sent to the server.

I created a small example on ZK Fiddle to show how it can work. Maybe you can change it to match your case so I can fix it afterwards.

Robert

link publish delete flag offensive edit
0

answered 2014-05-23 02:33:01 +0800

mhj gravatar image mhj flag of Brazil
806 1 7

hello aviut, look at this: access-java-code-and-component-attributesproperties-from-javascript-code i hope i've helped you

link publish delete flag offensive edit
Your answer
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
2 followers

RSS

Stats

Asked: 2014-05-08 13:26:29 +0800

Seen: 15 times

Last updated: May 26 '14

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