Vaadin 8 and TextField.addTextChangeListener

Hello,

I did not find any replacement in Vaadin 8 for listening to text change in text fields.

Can someone tell me how can this be done in Vaadin 8?

Thanks for your help

Hi Eric,

TextField now implements the HasValue interface. So you can just use the ValueChangeListener on your TextField.

Take a look
here
for an example.

Greetings

Thnaks for the quick response, but with text change listener, it was possible to listen differently to text change, thanks to
TextChangeEventMode (LAZY, TIMEOUT, …)

ValueChange does not seems to have options regarding this.

Hi,

check
tf.setValueChangeMode(ValueChangeMode.EAGER)
; etc.

-Olli