如何在 Vaadin
而不是 View
中创建多个 UI 页面?
现在我已经使用导航器的 View 创建了页面?
示例:
navigator=new Navigator(UI.getCurrent(),this);
navigator.addView("",new Login(navigator,sf,vs));
最佳答案
根据 Vaadin API 文档(顺便说一句,Google 中的第一个链接),您最多只能拥有一个 UI 实例。每个浏览器窗口:
The topmost component in any component hierarchy. There is one UI for every Vaadin instance in a browser window. A UI may either represent an entire browser window (or tab) or some part of a html page where a Vaadin application is embedded.
当然,您仍然可以在一台服务器上注册多个 UI 并将它们映射到多个 VaadinServlet的。
关于java - 如何在vaadin中创建多个ui页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36098541/