TextChangeListener on TextField get wrong value

Hi, i have a problem with TextChangeLister… I made a TextField and I want on every pressed key to execute query and refresh table data… The field get me good value if i click on some other field, then on the searchTF, type one letter and I get the last value…

My code:

searchTF= new TExtField(“Search”);


    searchTF.addTextChangeListener(new TextChangeListener() {
        public void textChange(TextChangeEvent event) {
            System.out.println("WRONG VALUE: "+searchTF.getValue());

[/code]I am using Vaadin 7.1.6…

Best Regards

As explained
in the reference for TextChangeEvent
, text change event is not the same as value change. The value is only changed on ValueChangeEvent. Therefore, use event.getText() instead of tf.getValue().

Thank you very much… event.getText() works fine…

Best Regards