Search in sources :

Example 6 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 7 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)

Example 8 with DataTable

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

Example 9 with DataTable

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

Example 10 with DataTable

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());
}
Also used : DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) ObjectSearchDto(com.evolveum.midpoint.web.page.admin.configuration.dto.ObjectSearchDto) 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)20 ObjectDataProvider (com.evolveum.midpoint.web.component.data.ObjectDataProvider)10 Table (com.evolveum.midpoint.web.component.data.Table)7 TablePanel (com.evolveum.midpoint.web.component.data.TablePanel)7 ObjectQuery (com.evolveum.midpoint.prism.query.ObjectQuery)3 IModel (org.apache.wicket.model.IModel)3 Model (org.apache.wicket.model.Model)3 ConfigurationStorage (com.evolveum.midpoint.web.session.ConfigurationStorage)2 TasksStorage (com.evolveum.midpoint.web.session.TasksStorage)2 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)2 AttributeAppender (org.apache.wicket.behavior.AttributeAppender)2 AbstractReadOnlyModel (org.apache.wicket.model.AbstractReadOnlyModel)2 LoadableModel (com.evolveum.midpoint.gui.api.model.LoadableModel)1 AjaxButton (com.evolveum.midpoint.web.component.AjaxButton)1 BaseSortableDataProvider (com.evolveum.midpoint.web.component.data.BaseSortableDataProvider)1 RepositoryObjectDataProvider (com.evolveum.midpoint.web.component.data.RepositoryObjectDataProvider)1 SelectableDataTable (com.evolveum.midpoint.web.component.data.SelectableDataTable)1 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)1 CertWorkItemDtoProvider (com.evolveum.midpoint.web.page.admin.certification.dto.CertWorkItemDtoProvider)1 AccountDetailsSearchDto (com.evolveum.midpoint.web.page.admin.configuration.dto.AccountDetailsSearchDto)1