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.
ValueChangeListener - does only react on browser refresh
Hi!
I have the following problem.
Like in the adressbook-application, I added this ValueChangeListener to my application:
userTable.addListener(new Property.ValueChangeListener()
{
@Override
public void valueChange(ValueChangeEvent event)
{
Object id = userTable.getValue();
userEditor.setItemDataSource(id == null ? null : userTable.getItem(id));
tUserRemovalButton.setVisible(id != null);
}
});
The problem is: if I select a row, nothing happens. I'm using firebug to monitoring the network connections, and there is no communication between client and server.
But if I refresh the whole page, it works.
When I monitor the addressbook-demo on the vaadin page, it works.
I'm using Firefox 3.5.8.
Please help!
Hi,
You have to set your table to be immediate to get valueChangeEvents immediately after the user selects a row:
userTable.setImmediate(true);