How to communicate jquery result to server side?


I am pretty new to vaadin.

I wanted to locate elements on browser page by using jquery. I did that by adding new component extending AbstractJavaScriptComponent.
Now i want to communicate jquery result back to server.
How can we do this in vaadin ?

Sonal Rajbhoj

You can do that with addFunction() in your AbstractJavaScriptComponent extended class, something like that:

addFunction("function_name_you_can_call_in_your_javascript", new JavaScriptFunction() {
   private static final long serialVersionUID = 1L;

   public void call(JSONArray arguments) throws JSONException {