public String action_modify() { try { if (entity == null) { Long idAnxResp = new Long(selectedAnexosRespuesta.getIdAnxResp()); entity = businessDelegatorView.getAnexosRespuesta(idAnxResp); } entity.setAdjuntoDocumento(FacesUtils.checkString(txtAdjuntoDocumento)); entity.setDocumentoReal(FacesUtils.checkBlob(txtDocumentoReal)); entity.setEstadoRegistro(FacesUtils.checkString(txtEstadoRegistro)); entity.setFechaCreacion(FacesUtils.checkDate(txtFechaCreacion)); entity.setNombreAnexo(FacesUtils.checkString(txtNombreAnexo).toLowerCase()); entity.setNombreBusqueda(FacesUtils.checkString(txtNombreBusqueda).toLowerCase()); entity.setUsuarioCreador(FacesUtils.checkString(txtUsuarioCreador).toLowerCase()); entity.setAnexosPqr( (FacesUtils.checkLong(txtIdAnexoPqr_AnexosPqr) != null) ? businessDelegatorView.getAnexosPqr(FacesUtils.checkLong(txtIdAnexoPqr_AnexosPqr)) : null); entity.setRespuestaSol( (FacesUtils.checkLong(txtIdRespSol_RespuestaSol) != null) ? businessDelegatorView.getRespuestaSol( FacesUtils.checkLong(txtIdRespSol_RespuestaSol)) : null); businessDelegatorView.updateAnexosRespuesta(entity); FacesUtils.addInfoMessage("El anexo se modificó exitosamente"); } catch (Exception e) { data = null; FacesUtils.addErrorMessage(e.getMessage()); } return ""; }