I’m experimenting with pushing data to a vaadin-grid. I have a non-templated version working fine using @Push, a DataProvider and a pure server-side code implementation. I’m now trying to achieve the same thing using the template approach. I set the DataProvider on the grid as follows:
@Id("entryGrid")
private Grid<Entry> priceGrid;
@Override
protected void onAttach(AttachEvent attachEvent) {
grid.setDataProvider(mutableListDataProvider);
This seems to be working as I get the correct number of entries in the grid as indicated by the [[index] ]
values displayed in the first column of each row. However the remaining columns templated as [[item.someProperty] ]
are blank. Should this work?