Retrieve a variable sent to server


From a JavaScript function I sent a String with the following method:

zAu.send(new zk.Event(zk.Widget.$('$nuevaPeticion'), 'onNueva', resultado, {toServer:true}));

The string I send is the result. My intention now is to collect that String in a java class so I can manipulate it, but I can not find a way.

asked by Angel Gonzalez Pena 21.09.2018 в 12:02

2 answers


Assuming that the server has everything ready to receive the data, you should use a function like that.

    public void onTest(Event evt){    
      String a = evt.getData().toString();;
answered by 21.09.2018 / 12:08

Look at this page: link I think that's exactly what you're looking for.

answered by 21.09.2018 в 12:08