diff --git a/modules/web/src/com/haulmont/cuba/web/gui/components/WebTable.java b/modules/web/src/com/haulmont/cuba/web/gui/components/WebTable.java index 13f29a797a..398f0c051f 100644 --- a/modules/web/src/com/haulmont/cuba/web/gui/components/WebTable.java +++ b/modules/web/src/com/haulmont/cuba/web/gui/components/WebTable.java @@ -36,7 +36,12 @@ import java.util.*; public class WebTable extends WebAbstractTable { public WebTable() { - component = new CubaTable() { + component = createTableComponent(); + initComponent(component); + } + + protected CubaTable createTableComponent() { + return new CubaTable() { @Override public Resource getItemIcon(Object itemId) { return WebTable.this.getItemIcon(itemId); @@ -49,7 +54,6 @@ public class WebTable extends WebAbstractTable { return b; } }; - initComponent(component); } @Override