From 909d4b9649438bf2748acab33f9adb05372d84a0 Mon Sep 17 00:00:00 2001 From: Giuli1297 Date: Mon, 22 Nov 2021 17:12:11 -0300 Subject: [PATCH] bugfix --- curriculumsearch/pom.xml | 20 ++++++++++++++++++++ curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java | 4 +++- curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp | 2 +- curriculumsearch/src/main/webapp/jsp/postulantes.jsp | 2 +- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/curriculumsearch/pom.xml b/curriculumsearch/pom.xml index 4575652..65a2dfd 100644 --- a/curriculumsearch/pom.xml +++ b/curriculumsearch/pom.xml @@ -92,6 +92,26 @@ compile + + com.itextpdf + kernel + 7.1.12 + + + + com.itextpdf + html2pdf + 3.0.1 + + + + + + + + + + diff --git a/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java b/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java index 53e486c..8e6050a 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java @@ -41,6 +41,8 @@ import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; @Controller @@ -91,7 +93,7 @@ public class PostulanteRRHHController { @RequestParam(required = false)Long convId, @RequestParam(defaultValue = "0")Integer nroPagina ) { - final Integer CANTIDAD_POR_PAGINA = 10; + final Integer CANTIDAD_POR_PAGINA = 5; Pageable page = PageRequest.of(nroPagina,CANTIDAD_POR_PAGINA,Sort.by("id")); model.addAttribute("tecnologias", tecRepo.findAll()); model.addAttribute("disponibilidades", Disponibilidad.values()); diff --git a/curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp b/curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp index 991c460..e51cfdc 100644 --- a/curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp +++ b/curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp @@ -11,7 +11,7 @@

Detalle Postulante ${postulante.nombre} ${postulante.apellido}

-
+
diff --git a/curriculumsearch/src/main/webapp/jsp/postulantes.jsp b/curriculumsearch/src/main/webapp/jsp/postulantes.jsp index 4cd7a14..a373447 100644 --- a/curriculumsearch/src/main/webapp/jsp/postulantes.jsp +++ b/curriculumsearch/src/main/webapp/jsp/postulantes.jsp @@ -244,7 +244,7 @@ if(!location.search) location.search = aBuscar const inicial = location.search.search(aBuscar); if(inicial==-1){//si no se encuentra y hay otros queries - location.search += "&"+aBuscar; + location.search = "&"+aBuscar; } location.search.replace('nroPagina=',aBuscar) console.log(location.search) -- libgit2 0.26.0