Multiple UI one of them has Comunication Problems

Somebody had this problem bevore me and described it verry well sadly its unanswered till now →

Stack Overflow Question

Here is the problem, you are trying to laod the second UI as an ExternalResource. You should instead use a BrowserWindowOpener. Please refer to section 4.8.4 of the Book of Vaadin.

Thank you Vikrant Thakur i noticed i actualy don’t have the same problem i have Two UI start points.

This:

import javax.servlet.annotation.WebServlet;

import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;

@SuppressWarnings(“serial”)
@Theme(“SECRETTHEME”)
public class SECRETCLASSNAME extends UI {

private String title = “Laufzeit”;
final VerticalLayout layout = new VerticalLayout();

@WebServlet(value = “/*”, asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = LaufzeitAnalyseView.class, widgetset = “CENSOREDWIGETSETNAMEt”)
public static class Servlet extends VaadinServlet {
}

/* (non-Javadoc)

  • @see com.vaadin.ui.UI#init(com.vaadin.server.VaadinRequest)
    */
    @Override
    protected void init(VaadinRequest request) {
    setTheme(“valo”);
    setContent(layout);
    getPage().setTitle(title);

MainPanelLA mainPanel = new MainPanelLA();
layout.addComponent(mainPanel);
layout.setSizeFull();

}

}

And This: is the one if i klick something after the call there is a Comunication Problem

import javax.servlet.annotation.WebServlet;

import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;

@SuppressWarnings(“serial”)
@Theme(“SECRETTHEME”)
public class SECRETCLASSNAME2 extends UI {

private String title = “Last Verteilung”;
final VerticalLayout layout = new VerticalLayout();

@WebServlet(value = “/lastverteilung”, asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = LastVerteilungView.class, widgetset = “CENSOREDWIGETSETNAMEt”)
public static class Servlet extends VaadinServlet {
}

@Override
protected void init(VaadinRequest request) {
setTheme(“valo”);
setContent(layout);
getPage().setTitle(title);

MainPanelLV mainPanel = new MainPanelLV();
layout.addComponent(mainPanel);
layout.setSizeFull();

}
}