Search in sources :

Example 1 with PageReport

use of com.evolveum.midpoint.web.page.admin.reports.PageReport in project midpoint by Evolveum.

the class ReportMainPanel method initLayoutSaveAndRunButton.

private void initLayoutSaveAndRunButton(PageAdminObjectDetails<ReportType> parentPage) {
    AjaxSubmitButton saveAndRunButton = new AjaxSubmitButton(ID_SAVE_AND_RUN, parentPage.createStringResource("pageReport.button.saveAndRun")) {

        private static final long serialVersionUID = 1L;

        @Override
        protected void onSubmit(AjaxRequestTarget target) {
            ((PageReport) getDetailsPage()).saveAndRunPerformed(target);
        }

        @Override
        protected void onError(AjaxRequestTarget target) {
            target.add(parentPage.getFeedbackPanel());
        }
    };
    saveAndRunButton.add(getVisibilityForSaveAndRunButton());
    saveAndRunButton.setOutputMarkupId(true);
    saveAndRunButton.setOutputMarkupPlaceholderTag(true);
    getMainForm().add(saveAndRunButton);
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) AjaxSubmitButton(com.evolveum.midpoint.web.component.AjaxSubmitButton) PageReport(com.evolveum.midpoint.web.page.admin.reports.PageReport)

Aggregations

AjaxSubmitButton (com.evolveum.midpoint.web.component.AjaxSubmitButton)1 PageReport (com.evolveum.midpoint.web.page.admin.reports.PageReport)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1