I’ve seem to have the same problem
project: Eclipse + Maven
after migrating from V6 to V7 (7.1.1) subwindows seem to fail to attach internal VerticalLayout to its content
even simple example from the book does not work
Window subWindow = new Window();
VerticalLayout subContent = new VerticalLayout();
subContent.setMargin(true);
subWindow.setContent(subContent);
// Put some components in it
subContent.addComponent(new Label("Meatball sub"));
subContent.addComponent(new Button("Awlright"));
// Center it in the browser window
subWindow.center();
// Open it in the UI
UI.getCurrent().addWindow(subWindow);
it just opens shrunk window with no content in it
this is what i get when vaadin debug monitor is on:
[i]
Only managed layouts can need layout, layout attempted for nulljava.lang.IllegalStateException: Only managed layouts can need layout, layout attempted for null
at Unknown.Qy(Unknown Source)
at Unknown.Ly(Unknown Source)
at Unknown.cU(Unknown Source)
at Unknown.GS(Unknown Source)
at Unknown.q6(Unknown Source)
at Unknown.anonymous(Unknown Source)
at Unknown.anonymous(Unknown Source)
at Unknown.anonymous(Unknown Source)
at Unknown.anonymous(Unknown Source)
at Unknown.anonymous(Unknown Source)
at Unknown.anonymous(Unknown Source)
Please make sure you have recompiled the widgetset and the new widgetset is actually used by the browser (check e.g. the network tab of the debugging tools of your browser).
We have very similar code in a large number of automated tests that are run for every build and this would break many applications so I wonder what is triggering the problem here.
If you are able to reproduce this with a minimal valid UI class (either with the code posted above or with your own example) with unmodified Vaadin 7.1.7 and the default widgetset, please
create a ticket with the UI code.