use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class PageReports method clearSearchPerformed.
private void clearSearchPerformed(AjaxRequestTarget target) {
searchModel.setObject(new ReportSearchDto());
Table panel = getReportTable();
DataTable table = panel.getDataTable();
ObjectDataProvider provider = (ObjectDataProvider) table.getDataProvider();
provider.setQuery(createQuery());
ReportsStorage storage = getSessionStorage().getReports();
storage.setReportSearch(searchModel.getObject());
storage.setPaging(null);
panel.setCurrentPage(null);
target.add((Component) panel);
}
use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class PageTasks method searchFilterPerformed.
private void searchFilterPerformed(AjaxRequestTarget target) {
TasksSearchDto dto = searchModel.getObject();
// ObjectQuery query = createTaskQuery(dto.getStatus(), dto.getCategory(), dto.isShowSubtasks());
ObjectQuery query = createTaskQuery();
Table panel = getTaskTable();
DataTable table = panel.getDataTable();
TaskDtoProvider provider = (TaskDtoProvider) table.getDataProvider();
provider.setQuery(query);
table.setCurrentPage(0);
TasksStorage storage = getSessionStorage().getTasks();
storage.setTasksSearch(dto);
target.add(getFeedbackPanel());
target.add((Component) getTaskTable());
}
use of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable in project midpoint by Evolveum.
the class PageTasks method clearSearchPerformed.
private void clearSearchPerformed(AjaxRequestTarget target) {
TasksSearchDto tasksSearchDto = new TasksSearchDto();
tasksSearchDto.setCategory(ALL_CATEGORIES);
tasksSearchDto.setStatus(TaskDtoExecutionStatusFilter.ALL);
searchModel.setObject(tasksSearchDto);
Table panel = getTaskTable();
DataTable table = panel.getDataTable();
TaskDtoProvider provider = (TaskDtoProvider) table.getDataProvider();
provider.setQuery(null);
TasksStorage storage = getSessionStorage().getTasks();
storage.setTasksSearch(searchModel.getObject());
panel.setCurrentPage(storage.getPaging());
target.add((Component) panel);
}
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());
}
Aggregations