I'm trying to update an on-screen component with RequestContext
of primefaces
. However there are 2 situations where the first one is I click on a link and the page gives its refresh. The second situation is where I have a scheduler on the system that calls a method often, at the end of this method I ask to update the component, then there is the problem because RequestContext arrives as null and I do not succeed, does anyone know how I can solve ?
RequestContext context = RequestContext.getCurrentInstance();
context.update("listaEncomendas:viewFull:cadastroEdicaoForm:atualizacao");