I have 3 questions:
Each and every action in Vaadin makes a call to the server. is there a way to avoid calls to server for every actions? like having a co
I am not expert of Vaadin Framework...
I can tell you that your Question No.3 is to run JavaScript commands through that..
You can also run jQuery command through that..
But for that you must have jQuery included in the page..
for Question 1: I can say it is possible, as Vaadin have the functionality that overrides function..
JavaScript.getCurrent().addFunction("com.example.foo.myfunc",
new JavaScriptFunction() {
@Override
public void call(JSONArray arguments) throws JSONException {
Notification.show("Received call");
}
});
Link link = new Link("Send Message", new ExternalResource(
"javascript:com.example.foo.myfunc()"));
Now in absence of supporting code, you must identify the actual plugin's function that is making call to server on each action. Make sure if you override the function.. you will require that functionality at some point.. so do not override the actually required function....
Question 2,
yes the jQuery is available with vaadin, refer forum
it says you can call jQuery directly like this $wnd.JQuery
I hope this will help...