Loading...
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.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

AbstractCommunicationManager handleVariableBurst / Ignoring variable change

Uwe Clement
1 decade ago Jul 29, 2011 10:26am
Jeshan Babooa
1 decade ago Aug 21, 2011 4:03pm
Henri Sara
1 decade ago Aug 22, 2011 8:50am
Lubomir Elko
1 decade ago Oct 12, 2011 1:13pm

Uwe Clement: Sometimes i am geeting these warning within my vaadin application:

Jul 29, 2011 1:55:44 AM com.vaadin.terminal.gwt.server.AbstractCommunicationManager handleVariableBurst
WARNING: Warning: Ignoring variable change for non-existent component, VAR_PID=PID55

I'm getting the same warning message when I removed some component from container and then I try to access to it from this container. Example:

private HorizontalLayout container = new HorizontalLayout();
private Button component = new Button();
...
public void addAtFirst() {
    container.addComponent(component);
    component.addListener(new ClickListener() { 
        ...
        doSomethingOnTheEnd();
    });
}

public void removeAtSecond() {
    container.removeComponent(component);
    // container.requestRepaint(); // uncomment this to solve problem !
}

public void doSomethingOnTheEnd() {
    component.setCaption("This went wrong");
}

So NOT forget to repaint parent container if you remove some component from it! This helped for me.

Last updated on Oct, 12th 2011
Ajay Kumar
6 years ago Apr 06, 2017 3:07pm