Retrieve a variable sent to server

3

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
source

2 answers

3

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

@Listen("onTest=#nuevaPeticion")
    public void onTest(Event evt){    
      String a = evt.getData().toString();
      Messagebox.show(a);
    }
    
answered by 21.09.2018 / 12:08
source
0

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

    
answered by 21.09.2018 в 12:08