是否可以将一个Vaadin应用程序嵌套到另一个中?我想用应用程序A实现一个门户,并将多个应用程序嵌入到该门户中。嵌套Vaadin应用程序
我可以并排通过调用vaadin.initApplication
具有不同ID多次为目标元素有多个Vaadin应用:
vaadin.initApplication("target-element-id",{
"theme": "mytheme",
"versionInfo": {
"vaadinVersion": "7.5.1",
"atmosphereVersion": "2.2.7.vaadin1"
},
"widgetset": "de.test.widgetset",
"vaadinDir": "http://localhost/VAADIN/",
"browserDetailsUrl": "http://localhost/service1",
"serviceUrl": "http://localhost/service1",
"debug": true,
"standalone": false,
"heartbeatInterval": 300
});
但只要我指定一个元素作为目标就是已经是Vaadin UI内,我得到以下错误:
java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list