use of com.evolveum.midpoint.web.session.ConfigurationStorage in project midpoint by Evolveum.
the class PageDebugList method listObjectsPerformed.
private void listObjectsPerformed(AjaxRequestTarget target) {
Table table = getListTable();
if (searchModel.getObject().isTypeChanged()) {
Search search = SearchFactory.createSearch(getTypeItem(), PageDebugList.this, true);
// TODO: this is veeery ugly, available definitions should refresh when the type changed
searchModel.setObject(search);
configureSearch(search);
table.getDataTable().getColumns().clear();
// noinspection unchecked
table.getDataTable().getColumns().addAll(createColumns());
}
// save object type category to session storage, used by back button
ConfigurationStorage storage = getSessionStorage().getConfiguration();
storage.setSearch(searchModel.getObject());
target.add((Component) table);
target.add(getFeedbackPanel());
}
Aggregations