简体   繁体   English

无法在 Vaadin8 中导入表格

[英]Unable to import Table in Vaadin8

I just tried to create a Table in my Vaadin 8 project:我只是尝试在我的 Vaadin 8 项目中创建一个Table

Table table = new Table("The Brightest Stars");
table.addContainerProperty("Name", String.class, null);

I have only added the following dependency:我只添加了以下依赖项:

<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-server</artifactId>
    <version>8.12.4</version>
</dependency>

Can anyone help me for finding the right dependency or cause of this problem任何人都可以帮助我找到正确的依赖关系或导致此问题的原因

You need to use the vaadin-compatibility-server dependency to have access to Table https://vaadin.com/docs/v8/framework/migration/migrating-to-vaadin8.html您需要使用vaadin-compatibility-server依赖项才能访问Table https://vaadin.com/docs/v8/framework/migration/migrating-to-vaadin8.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM