I have reported this as an issue in GitHub as well.
I use SimpleLayout 0.5 with Vaadin 6.8.0, works excellently for reducing the number of nested divs. But, I have found a problem. When I replace a component in a SimpleLayout with
layout.replaceComponent(oldComonent, newComponent);
or remove all components from the layout and add new ones
[font=Courier New]
layout.removeAllComponents();
layout.addComponent(…);
…
[/font]
the old component is rendered after the new one. Calling
layout.requestRepaint()
or
layout.requestRepaintAll()
does not help. Is this just me doing something strange along the way? If not, is there a way round this?
I have noticed that the page is rendered correctly if I refresh the browser. Is there a way to force a browser reload programatically from Vaadin?