0
How can I update my dataTable
without needing to restart the application? The way I am doing the table is updated after a F5, but if I give F5 again, it gets outdated again.
For example: I have 3 positions, my query
brings only the post x
. Dai when I edit a position x
for y
it keeps appearing on the table if I give a F5 he vanishes, but if I give F5 again he returns.
I am trying to update the table as follows:
<f:event listener="#{controleAuditoriaLibBean.carregarPesquisa}" type="preRenderView"></f:event>
And my method that carries the research:
public void carregarPesquisa(){
try{
//Traz apenas se for "Liberação" e "Aguardando"
SolicitacoesDAO solicitacaoDAO = new SolicitacoesDAO();
list = solicitacaoDAO.listarPorUsuario("Liberacao", "Aguardando");
}catch(RuntimeException ex){
FacesUtil.adicionarMsgErro("Erro ao tentar listar as Auditorias");
}
}
When you need to update the datatable?
– Alexandre Strevenski
When I opened the page, I was able to solve it now just to find out how I update components of a screen on another screen. For example, I want to update the form on screen x when I click save on screen y
– DiegoAugusto