use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class PageAccounts method searchPerformed.
private void searchPerformed(AjaxRequestTarget target) {
refreshSyncTotalsModels();
ObjectQuery query = createObjectQuery();
TablePanel panel = getAccountsTable();
DataTable table = panel.getDataTable();
ObjectDataProvider provider = (ObjectDataProvider) table.getDataProvider();
provider.setQuery(query);
ConfigurationStorage storage = getSessionStorage().getConfiguration();
storage.setAccountSearchDto(searchModel.getObject());
storage.setAccountDetailsPaging(null);
panel.setCurrentPage(null);
target.add(getTotalsPanel());
target.add(getFeedbackPanel());
target.add(getAccountsContainer());
}
use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class PageAccounts method clearSearchPerformed.
private void clearSearchPerformed(AjaxRequestTarget target) {
refreshSyncTotalsModels();
searchModel.setObject(new AccountDetailsSearchDto());
TablePanel panel = getAccountsTable();
DataTable table = panel.getDataTable();
ObjectDataProvider provider = (ObjectDataProvider) table.getDataProvider();
provider.setQuery(ObjectQuery.createObjectQuery(createResourceQueryFilter()));
ConfigurationStorage storage = getSessionStorage().getConfiguration();
storage.setAccountSearchDto(searchModel.getObject());
storage.setAccountDetailsPaging(null);
panel.setCurrentPage(storage.getAccountDetailsPaging());
target.add(getTotalsPanel());
target.add(getSearchPanel());
target.add(getAccountsContainer());
}
use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class PageDebugList method getTableDataProvider.
private RepositoryObjectDataProvider getTableDataProvider() {
Table tablePanel = getListTable();
DataTable table = tablePanel.getDataTable();
return (RepositoryObjectDataProvider) table.getDataProvider();
}
use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class ObjectSelectionPanel method searchPerformed.
private void searchPerformed(AjaxRequestTarget target) {
ObjectQuery query = createObjectQuery();
TablePanel panel = getTablePanel();
DataTable table = panel.getDataTable();
ObjectDataProvider provider = (ObjectDataProvider) table.getDataProvider();
provider.setQuery(query);
target.add(panel);
}
use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class ObjectSelectionPanel method clearSearchPerformed.
private void clearSearchPerformed(AjaxRequestTarget target) {
searchModel.setObject(new ObjectSearchDto());
TablePanel panel = getTablePanel();
DataTable table = panel.getDataTable();
ObjectDataProvider provider = (ObjectDataProvider) table.getDataProvider();
if (context.getDataProviderQuery() != null) {
provider.setQuery(context.getDataProviderQuery());
} else {
provider.setQuery(null);
}
target.add(panel, getSearchForm());
}
Aggregations