Hi, I encounter this problem that I dont know how to solve, here is my code:
class ProfileView(@Autowired private var profileService: ProfileService): VerticalLayout() {
init {
this.add(
this.configureGrid()
)
}
private fun configureGrid(): Grid<Profile> {
val grid = Grid(Profile::class.java, false)
grid.setSizeFull()
grid.addColumn(Profile::name).setHeader("NAME")
grid.addColumn(Profile::since).setHeader("SINCE")
grid.addColumn(Profile::id).setHeader("ID")
grid.columns.forEach { col -> col.setAutoWidth(true) }
grid.pageSize = 25
grid.setItems(this.profileService.retrieveProfiles(grid.pageSize * 2))
return grid
}
and it is just empty, no header are shown and my items aren’t. I printed the list and it is not empty…
