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);
}
Aggregations