How to rpaint a single table row?


how can I request repaint of a single table row? I have a table and an edit form. The table has an edit button. When I click the button, I want the table row to be displayed italic while the entity is in edit mode.

I could make the styles possible by:

table.setCellStyleGenerator(new Table.CellStyleGenerator() {
            public String getStyle(Table source, Object itemId, Object propertyId) {
                if (propertyId == null && itemId != null && itemId.equals(itemIdBeingEdited)) {
                    return "editstyle";
                return null;

But how can I refresh that single row after click=


I don’t think you can send the update to just one row, but your problem will be solved by calling refreshRowCache() on your table from your button’s click listener. Unfortunately this will rerender all the rows in the current row cache, which may be a bit expensive depending on your table contents.