Create own filter for each metaClass name in EntityRestore screen. #PL-2128 Fixed

This commit is contained in:
Ilya Chekashkin 2013-05-16 08:08:43 +00:00
parent 4921f0edd5
commit 62abf190d4

View File

@ -71,6 +71,9 @@ public class EntityRestore extends AbstractWindow {
return getMessage("actions.Refresh");
}
});
primaryFilter.setVisible(false);
tablePanel = getComponent("table-panel");
entities.setOptionsMap(getEntitiesLookupFieldOptions());
Window layout = getComponent();
layout.remove(primaryFilter);
@ -146,7 +149,8 @@ public class EntityRestore extends AbstractWindow {
entitiesTable.setDatasource(entitiesDs);
filter = componentsFactory.createComponent(Filter.NAME);
filter.setId("primaryFilter");
String filterId = metaClass.getName().replace("$","");
filter.setId(filterId + "GenericFilter");
filter.setFrame(getFrame());
filter.setStyleName(primaryFilter.getStyleName());
filter.setXmlDescriptor(primaryFilter.getXmlDescriptor());