public String delete() {
   statusMessage = SUCCESS_MESSAGE;
   result = "true";
   setDeleteId(new Long((linkDelete.getAttributes().get("deleteId").toString())));
   setClassificationName((String) linkDelete.getAttributes().get("classificationName"));
   try {
     VDCGroup vdcgroup = vdcGroupService.findById(deleteId);
     vdcGroupService.removeVdcGroup(vdcgroup);
     HttpServletRequest request =
         (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
     String referer = (String) request.getHeader("referer");
     result = referer.substring(referer.lastIndexOf("/") + 1, referer.indexOf("."));
     result = getFriendlyLinkName();
     resultLink = referer;
     // this.vdcGroupService.updateGroupOrder(order); // TBD
   } catch (Exception e) {
     statusMessage = FAIL_MESSAGE + " " + e.getCause().toString();
     result = "failed";
   } finally {
     Iterator iterator =
         FacesContext.getCurrentInstance().getMessages("AddClassificationsPageForm");
     while (iterator.hasNext()) {
       iterator.remove();
     }
     FacesContext.getCurrentInstance()
         .addMessage("AddClassificationsPageForm", new FacesMessage(statusMessage));
     return "success";
   }
 }
  public String action_clear() {
    txtNombre.setValue(null);
    btnSave.setDisabled(false);
    btnDelete.setDisabled(true);
    btnModify.setDisabled(true);
    btnClear.setDisabled(false);

    return "";
  }
 public String action_commandLink() {
   try {
     SabAutor sabAutorr = DelegadoNegocioVista.getSabAutor(idAutor);
     if (sabAutorr.getNombre() != null) {
       txtNombre.setValue(sabAutorr.getNombre());
       btnModify.setDisabled(false);
       btnSave.setDisabled(true);
       btnDelete.setDisabled(false);
       btnModify.setDisabled(false);
       btnClear.setDisabled(false);
     } else {
       throw new Exception(FacesUtils.getMensaje("error.autor.no.encontrado"));
     }
   } catch (Exception e) {
     mensaje.addErrorMessage(e.getMessage());
   }
   return "";
 }