I'm trying to use PollListener
in vaadin with following code:
@VaadinUI
@PreserveOnRefresh
public class ApplicationUI extends UI {
@Override
protected void init(VaadinRequest request) {
setPollInterval(1000);
access(new Runnable() {
@Override
public void run() {
System.out.println("TEST POLL: " + counter++); //is only printed a single time
}
});
}
}
The output "TEST POLL 0" is printed a single time when I open my application. But that's it. What might I have missed?