瓦丁。在基于 html 的资源中导航
Vaadin. Navigation among html-based resources
我在我的 Vaadin 项目布局中添加了几个 html 文件。这些文件通过锚点相互 "interconnected"。在浏览器中,我可以导航到它们 w/o 任何问题,但在 Vaadin 应用程序中单击 link 后,我看到以下内容:
The view could not be found You tried to navigate to a view ('')
that does not exist.
之后我在浏览器中的地址栏包含以下地址:
我应该如何处理 Vaadin 中的导航?
您似乎使用导航器导航到您的 html 页面。使用导航器,您只能导航到使用 addView(..)
注册的 Vaadin 视图,而不是任意 html 页面。为此,请使用 Page.getCurrent().setLocation(<your url>)
.
我在我的 Vaadin 项目布局中添加了几个 html 文件。这些文件通过锚点相互 "interconnected"。在浏览器中,我可以导航到它们 w/o 任何问题,但在 Vaadin 应用程序中单击 link 后,我看到以下内容:
The view could not be found You tried to navigate to a view ('') that does not exist.
之后我在浏览器中的地址栏包含以下地址:
我应该如何处理 Vaadin 中的导航?
您似乎使用导航器导航到您的 html 页面。使用导航器,您只能导航到使用 addView(..)
注册的 Vaadin 视图,而不是任意 html 页面。为此,请使用 Page.getCurrent().setLocation(<your url>)
.