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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
TableFieldFactory()
Is there a way to add different components(Combobox/TextField) to a single column according to other properties' value of a row in a table?
Hi,
Yes. Using the parameters passed to createField method (Container container, Object itemId, Object propertyId,
Component uiContext), you can inspect other properties of the same row, then just conditionally configure/choose the field.
BTW. In many cases using ColumnGenerator instead of editable Table is more flexible. Then you can e.g. return Label (which is not Field) in some cases and a TextField in other.
cheers,
matti