Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
Problem with fields in table and writethrough
I generate editable table with TableFieldFactory.
table.setContainerDataSource(container);
table.setTableFieldFactory(new TableFieldFactory() {
@Override
public Field createField(Container container, Object itemId, Object propertyId, Component uiContext) {
if ("myfield".equals(propertyId)) {
Select select = new Select();
select.setContainerDataSource(items);
select.setPropertyDataSource(container.getContainerProperty(itemId, propertyId));
select.setItemCaptionPropertyId("name");
select.setNewItemsAllowed(false);
select.setWriteThrough(false);
select.setImmediate(true);
select.setSizeFull();
return select;
}
}
});
view.getRulesTable().setVisibleColumns(new String[] { "myfield"});
Vaadin set "modified=true" attribute to select only after SECOND change. Where the problem? Also Vaadin 6.7.3
Last updated on
You cannot reply to this thread.