actionConfirms.add(new ActionConfirm("AbortClose", no));
uiConfirmation.setActions(actionConfirms);
}
public void createActionConfirm(String message, String confirmAction, String abortAction) {
UIConfirmation uiConfirmation = getChild(UIConfirmation.class);
ResourceBundle resourceBundle = WebuiRequestContext.getCurrentInstance().getApplicationResourceBundle();
String yes = resourceBundle.getString("UIEditInlineWorkspace.confirm.yes");
String no = resourceBundle.getString("UIEditInlineWorkspace.confirm.no");
uiConfirmation.setMessage(resourceBundle.getString(message));
List<ActionConfirm> actionConfirms = new ArrayList<ActionConfirm>();
actionConfirms.add(new ActionConfirm(confirmAction, yes));
actionConfirms.add(new ActionConfirm(abortAction, no));
uiConfirmation.setActions(actionConfirms);
((WebuiRequestContext) WebuiRequestContext.getCurrentInstance()).addUIComponentToUpdateByAjax(uiConfirmation);
}