Hallo,
First let congratulate the Vaadin team for such an innovative project.
I’ve been testing the use of Vaadin within Liferay, but found the following:
-my liferay portlet get rendered as I build all the components within the init method:
public void init() {
Window window = new Window();
try{
VerticalLayout root = new VerticalLayout();
Label label = new Label("Country: CM ");
root.addComponent(label);
window.setContent(root);
}catch(Exception e){
logError(e);
}
setMainWindow(window);
}
-but when used wrapped within a composite component, nothing shows on the Liferay portlet:
Application:
public void init() {
Window window = new Window();
try{
VerticalLayout root = new VerticalLayout();
SchoolListView list = new SchoolListView();
root.addComponent(list);
root.setEnabled(true);
list.setEnabled(true);
list.setVisible(true);
window.setContent(root);
root.setSizeFull();
window.setHeight(300f, AbstractComponent.UNITS_PIXELS);
window.setWidth(300f, AbstractComponent.UNITS_PIXELS);
}catch(Exception e){
logError(e);
}
setMainWindow(window);
}
Composite Component:
public SchoolListView() {
Label label = new Label("Country: CM ");
setCompositionRoot(label);
}
I will appreciate any hint as to what causes the issue.
Thanks