java - 如何在vaadin中创建多个ui页面

标签 java vaadin

如何在 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/

相关文章:

java - JNI HellowWorld unsatisfiedlinkError 找不到依赖库

java - 将选择计数添加到 vaadin 数据源

java - 如何在 Vaadin 网格中仅使某些列可编辑?

java - Vaadin Calendar - 单击添加事件

java - 线程声明

java能够编译但无法使用cmd找到类错误

java - Vaadin - 如何从 bean 项目容器中的 bean 项目的对象 id 获取 bean 本身

java - Guice:在 ServletModule 中注入(inject)拦截器

java - SonarQube Eclipse 插件 3.4 由于连接超时而无法到达 Sonar 服务器

java - 从对象创建 Jackson ObjectNode