public ExecMessageModal(final String id, final String executionMessage) { super(id); add(new Label("executionMessage", executionMessage).setOutputMarkupId(true)); }
@Override public void onClick(final AjaxRequestTarget target, final ExecTO ignore) { detailModal.header(new StringResourceModel("execution.view", JobWidget.this, model)); detailModal.setContent(new ExecMessageModal(model.getObject().getMessage())); detailModal.show(true); target.add(detailModal); } }, ActionLink.ActionType.VIEW, StandardEntitlement.TASK_READ);
@Override public void onClick(final AjaxRequestTarget target, final RemediationTO ignore) { modal.header(new ResourceModel("error")); modal.setContent(new ExecMessageModal(model.getObject().getError())); modal.show(true); target.add(modal); } }, ActionLink.ActionType.VIEW_DETAILS, StandardEntitlement.REMEDIATION_READ);