All works fine now, only one call!!! THANK YOU PAUL THANK YOU VLAD!!!

New Question :P

My DataTable has a delete and edit links and the JSF also has an add button
(see image), but since the bean is in session when I delete, add or edit a
Patient the data no is refresh until I click a number link of the table
(1,2,3,...) My question is after call any of the method what method I have
to call to the data to be ubdate?


Vlad, for the moment, when I bring the PageData of a Patient I also select
the number of Patients, and set it in the DataPage that is returned, i donpt
know if it is a better way, but for
the moment I´m concentrate in the view part, this is the code:

....
               String selectCantidad = "SELECT COUNT(*) AS CANTIDAD FROM
IDEN_PACIENTE";
               ResultSet rsCantidad = accesoDatos.ejecutaSQLRetornaRS
(selectCantidad);
               rsCantidad.next();
               cantidad = rsCantidad.getInt("CANTIDAD");

           }
           catch (SQLException e) {
               ....
           }
           catch (SIGNOSException e) {
               .....
           }

DataPage<Paciente> dataPage = new DataPage<Paciente>(cantidad
,inicio,pacientes);

       return dataPage;

<<attachment: image.JPG>>

Reply via email to