Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
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?