是否可以將一個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