Textfield ValueChangeListener

Is there a way to get an event after every enterd letter into a textfield component?

with the valuechangelistener i only get the event (f.e.) after clicking out of the textfield

thanks for help

You can try it’s by TextChangeListener. It’s work’s every Key Pressed.

yeahh that works but i´ve got another problem:

when i use a textfield with a textchangelistener an print after every textchange event the value of the textbox, there is no output.

i´ve added some code that shows my problem:



The value of a field is not modified when a TextChangeEvent is received, but you can access the latest text with event.getText().

thank you, thats exactly what i´m searching for :smiley: