Not immediate javascript component

Hi,

I have a dual knob slider component written in javascript. Following
this guide
(using
AbstractJavaScriptComponent
and
JavaScriptComponentState
) I was able to implement it, but I have an issue. Whenever I move a knob it sends the value to the server creating unnecessary trafic and server load.

To make it easier to understand (and because I can’t post the code right now) let’s take the example from the previously mentioned guide.
Let’s say I want to remove the button from the javascript and make it so – if changed – the value of the input field is embedded in the next request made towards the server.

That is how it works with a normal vaadin TextField if it is not set to be immediate. The value of a vaadin TextField is embedded in any server request (like a button press) if it has changed from the previous state. That is what I would like to accomplish but with my own javascript component. How can I do that?