Search in sources :

Example 1 with DataTable

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);
}
Also used : DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) ReportSearchDto(com.evolveum.midpoint.web.page.admin.reports.dto.ReportSearchDto) Table(com.evolveum.midpoint.web.component.data.Table) DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) ReportsStorage(com.evolveum.midpoint.web.session.ReportsStorage) ObjectDataProvider(com.evolveum.midpoint.web.component.data.ObjectDataProvider)

Example 2 with DataTable

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());
}
Also used : DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) Table(com.evolveum.midpoint.web.component.data.Table) DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) TasksStorage(com.evolveum.midpoint.web.session.TasksStorage)

Example 3 with DataTable

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);
}
Also used : DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) Table(com.evolveum.midpoint.web.component.data.Table) DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) TasksStorage(com.evolveum.midpoint.web.session.TasksStorage)

Example 4 with DataTable

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());
}
Also used : DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) ConfigurationStorage(com.evolveum.midpoint.web.session.ConfigurationStorage) ObjectDataProvider(com.evolveum.midpoint.web.component.data.ObjectDataProvider) ObjectQuery(com.evolveum.midpoint.prism.query.ObjectQuery) TablePanel(com.evolveum.midpoint.web.component.data.TablePanel)

Example 5 with DataTable

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());
}
Also used : AccountDetailsSearchDto(com.evolveum.midpoint.web.page.admin.configuration.dto.AccountDetailsSearchDto) DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) ConfigurationStorage(com.evolveum.midpoint.web.session.ConfigurationStorage) ObjectDataProvider(com.evolveum.midpoint.web.component.data.ObjectDataProvider) TablePanel(com.evolveum.midpoint.web.component.data.TablePanel)

Aggregations

DataTable (org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable)21 ObjectDataProvider (com.evolveum.midpoint.web.component.data.ObjectDataProvider)10 Table (com.evolveum.midpoint.web.component.data.Table)8 TablePanel (com.evolveum.midpoint.web.component.data.TablePanel)8 ObjectQuery (com.evolveum.midpoint.prism.query.ObjectQuery)3 LoadableModel (com.evolveum.midpoint.gui.api.model.LoadableModel)2 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)2 ConfigurationStorage (com.evolveum.midpoint.web.session.ConfigurationStorage)2 TasksStorage (com.evolveum.midpoint.web.session.TasksStorage)2 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)2 AuthUtil (com.evolveum.midpoint.authentication.api.util.AuthUtil)1 GuiStyleConstants (com.evolveum.midpoint.gui.api.GuiStyleConstants)1 BasePanel (com.evolveum.midpoint.gui.api.component.BasePanel)1 LabelWithHelpPanel (com.evolveum.midpoint.gui.api.component.LabelWithHelpPanel)1 PasswordPanel (com.evolveum.midpoint.gui.api.component.password.PasswordPanel)1 GuiDisplayTypeUtil (com.evolveum.midpoint.gui.api.util.GuiDisplayTypeUtil)1 WebComponentUtil (com.evolveum.midpoint.gui.api.util.WebComponentUtil)1 WebModelServiceUtils (com.evolveum.midpoint.gui.api.util.WebModelServiceUtils)1 ProgressInformation (com.evolveum.midpoint.model.api.ProgressInformation)1 StringLimitationResult (com.evolveum.midpoint.model.api.validator.StringLimitationResult)1