import com.vaadin.terminal.gwt.client.ui.label.ContentMode;
import com.vaadin.terminal.gwt.server.PortletApplicationContext2;
import com.vaadin.terminal.gwt.server.PortletApplicationContext2.PortletListener;
+import com.vaadin.ui.ComponentContainer;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.Label;
import com.vaadin.ui.Link;
import com.vaadin.ui.TextField;
import com.vaadin.ui.Upload;
import com.vaadin.ui.Upload.Receiver;
-import com.vaadin.ui.VerticalLayout;
/**
* Adapted from old PortletDemo to support integration testing.
@Override
protected void init(WrappedRequest request) {
- VerticalLayout main = new VerticalLayout();
+ ComponentContainer main = getContent();
tf.setDebugId("tf");
userInfo.setDebugId("userInfo");
portletEdit.setDebugId("portletEdit");