diff --git a/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java b/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java index 0c6fd57..53e486c 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java @@ -103,6 +103,7 @@ public class PostulanteRRHHController { new TypedParameterValue(StringType.INSTANCE,null) : new TypedParameterValue(StringType.INSTANCE,"%"+nombre+"%"), dispo, lvlEng, lvlTec, tecId, instId,cargoId,page,estado,convId); + model.addAttribute("numeroOcurrencias", postulantesPag.getTotalElements()); List postulantes = postulantesPag.getContent(); List postulantesDTO = new ArrayList<>(); @@ -134,15 +135,6 @@ public class PostulanteRRHHController { } -// @GetMapping({"/pdfPostulante/{postulanteId}"}) -// public String getPostulantePdf(Model model, @PathVariable("postulanteId") Long postulanteId) { -// Postulante p = post.findById(postulanteId).orElse(null); -// model.addAttribute("postulante",p); -// model.addAttribute("cvId", fileRepo.getIdByPostulante(p)); -// model.addAttribute("estadoP", EstadoPostulante.values()); -// return "detallepostulante2"; -// -// } @PostMapping({"/postulantes/{postulanteId}"}) public String setPostulanteEstado(@ModelAttribute Postulante postulante, BindingResult result, @PathVariable("postulanteId") Long postulanteId) { diff --git a/curriculumsearch/src/main/webapp/jsp/postulantes.jsp b/curriculumsearch/src/main/webapp/jsp/postulantes.jsp index 55d7508..4cd7a14 100644 --- a/curriculumsearch/src/main/webapp/jsp/postulantes.jsp +++ b/curriculumsearch/src/main/webapp/jsp/postulantes.jsp @@ -209,11 +209,18 @@