I am using vaadin 8 with jave EE7 and wildfly
i want to use VerticalSplitPanel
My Code with the VerticalSplitPanel is:
@CDIView(...)
@UIScoped
public class View01 extends VerticalSplitPanel implements View {
...
public View01() {
setSplitPosition(70f, Unit.PERCENTAGE);
setSizeFull();
}
@PostConstruct
void init() {
contentA = new VerticalLayout();
grid = new Grid<Person>();
grid.setWidth("100%");
navBar = new HorizontalLayout();
contentA.addComponent(grid);
contentA.addComponent(navBar);
contentB = new HorizontalLayout();
contentB.addComponent(...)
contentB.addComponent(...)
contentB.addComponent(...)
setFirstComponent(contentA);
setSecondComponent(contentB);
But it is not working.
- contentB is not shown
- The Splitter works not in the correct way