Hello,
I am experimenting with pushing data to a Table with ICEPush.
The first few data is pushed fine to the Table, the view nicely displays new rows. After that, however, refresh ceases to happen. In the debug window I see ICEPush’s working. A sorting conducted on the table’s header shows new data is there. If sorting is done twice the next data row pushed somewhen later does appear, but nothing more afterwards. A parallel used Label containing info from the pushed data is orderly refreshed.
Both UI component’s data are updated in the same code block synchronized on the application instance.
Table data are updated as follows:
IndexedContainer c = (IndexedContainer)table.getContainerDataSource();
for (Alert a : alerts) {
Object id = c.addItem(); // let it generate unique id
Item i = c.getItem(id);
i.getItemProperty("time").setValue(a.getTimeAsDate().toString());
i.getItemProperty("sn").setValue(a.getSerialNumber().asString());
i.getItemProperty("msg").setValue(a.getDescription());
}
Can it be a bug in Table? Any idea how to make it work?
Thanks!
Zsolt