@Override protected void onInstantiation() { super.onInstantiation(); setIcon(FAIconType.copy); setBootstrapType(BootstrapType.WARNING); } }
@Override protected void performMultiAction(AjaxRequestTarget target, List<ODocument> objects) { if(objects.size() > 1) { String message = getLocalizer().getString("alert.onlyoneshouldbeselected", this).replace("\"", "\\\""); target.appendJavaScript("alert(\""+message+"\")"); return; } super.performMultiAction(target, objects); getDatabase().commit(true); getDatabase().begin(); }