So, I'm following basic examples, and I just cannot get it to work. The
populate() method below using ListDataProvider leaves the table empty.
populateWorking() works. Any hints?
public class GapAnalysisListTable extends CellTable<GapAnalysisVO> {
public GapAnalysisListTable() {
// Create a data provider.
dataProvider = new ListDataProvider<>(GapAnalysisVO::getId);
// Connect the table to the data provider.
dataProvider.addDataDisplay(this);
}
public void populate(final GapAnalysisVO[] gapAnalysisVOList) {
final List<GapAnalysisVO> list = dataProvider.getList();
list.addAll(Arrays.asList(gapAnalysisVOList));
dataProvider.refresh();
}
public void populateWorks(final GapAnalysisVO[] gapAnalysisVOList) {
setRowCount(gapAnalysisVOList.length);
setRowData(Arrays.asList(gapAnalysisVOList));
}
}
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-web-toolkit/f2e1cbcb-ca37-4671-8b28-b019b3ddf3f8n%40googlegroups.com.