Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listner is not updating table #3057

Closed
vaadin-bot opened this issue Oct 22, 2012 · 1 comment
Closed

Listner is not updating table #3057

vaadin-bot opened this issue Oct 22, 2012 · 1 comment
Labels

Comments

@vaadin-bot
Copy link
Collaborator

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 {

		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


Imported from https://dev.vaadin.com/ issue #10031

@vaadin-bot
Copy link
Collaborator Author

Originally by @Artur-


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant