You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a created an Indexed container and trying to refresh the data in table on a listener by calling:
Container indxContainer = liveTable.refreshLiveTable(lkInfo, liveTable);
liveTable.setContainerDataSource(indxContainer);
WHere
public Container refreshLiveTable(LockInfo lkInfo, LiveTable liveTable) {
int itemId = 0;
System.out.println("Time to add new Item");
Item id = null;
if (indxContainer.firstItemId() == null) {
id = indxContainer.addItem(lkInfo);
} else {
id = indxContainer.addItemAt(itemId, lkInfo);
itemId++;
}
id.getItemProperty(ECacheTableColumns.Selected).setValue(new CheckBox());
id.getItemProperty(ECacheTableColumns.Key).setValue(lkInfo.getKey());
id.getItemProperty(ECacheTableColumns.IDMToken).setValue(lkInfo.getIdmToken());
id.getItemProperty(ECacheTableColumns.MySite).setValue(lkInfo.getMySiteNo());
id.getItemProperty(ECacheTableColumns.UserName).setValue(lkInfo.getUserName());
id.getItemProperty(ECacheTableColumns.Application).setValue(lkInfo.getApplicationName());
id.getItemProperty(ECacheTableColumns.Module).setValue(lkInfo.getModuleName());
System.out.println("New item is added");
System.out.println("Added an entry to cache...");
return indxContainer;
}
its doesnt refresh page until i navigate away.
The same thing works when i do it on button click.
is this bug in vaadin or is there any workaround for this
A lot of tickets have been left hanging in the issue tracker through the years. Some of them are still relevant, some of them have been fixed a long time ago and some are no longer valid. To get a better look on what is important and still relevant, we are closing old tickets which have not been touched in a long time.
No further work will be done on this ticket unless someone indicates that it's still relevant.
If this ticket is still relevant to you, please reopen it.
Originally by makkar.deepika@gmail.com
I have a created an Indexed container and trying to refresh the data in table on a listener by calling:
Container indxContainer = liveTable.refreshLiveTable(lkInfo, liveTable);
liveTable.setContainerDataSource(indxContainer);
WHere
public Container refreshLiveTable(LockInfo lkInfo, LiveTable liveTable) {
int itemId = 0;
System.out.println("Time to add new Item");
Item id = null;
if (indxContainer.firstItemId() == null) {
id = indxContainer.addItem(lkInfo);
} else {
its doesnt refresh page until i navigate away.
The same thing works when i do it on button click.
is this bug in vaadin or is there any workaround for this
Imported from https://dev.vaadin.com/ issue #10031
The text was updated successfully, but these errors were encountered: