I’ve got several components in my UI with a ValueChangeListener. Examples include buttons and select boxes.
When I change the value, then I observe that the ValueChangeListener isn’t called immediately. Instead, for example, it is called when I start using another component. By using, I mean, for example that I display the item list in another select box (without changing the value).
Buttons should be “immediate” by default, but select box you’ll need to call setImmediate(true) to have it respond right away to change. You may also do this for text fields if you attach validators and would like the validation to take place as soon as they leave the field.
Thanks, you’ve been completely right: I was mismatching buttons (target of my ValueChangeListener) and date fields. Indeed, setImmediate(true) solved my problem rightaway!