Infinite Loop Method

0

I have a method call that is made with <p:remoteCommand /> of Primefaces on the Home Page of my system. And it works perfectly with some users, but with others it goes through the method in the full Bean, but never ends. The loop happens inside the implementation of JSF itself, but I can not keep up with Debug because I do not have the sources, so I'm not sure where that occurs.

I block the screen for the user with <p:blockUI /> . And for that reason, the user never goes beyond that part. The only difference between users is that the list to populate the chart comes empty, but without the use of <p:remoteCommand /> I've never had problems with that.

Remote Command:

<h:form id="remoteCommandForm">
<p:remoteCommand 
	action="#{paginaInicialBean.inicializar()}" 
	autoRun="true"
	update="formIndex"
	onstart="PF('blockUIWidget').show();"
	oncomplete="PF('blockUIWidget').hide();" />
</h:form>

BlockUI:

<p:blockUI
    widgetVar="blockUIWidget"
    block=":body"
    styleClass="blockui-background">

    <h:outputText 
      value="Por favor, aguarde.."
      escape="false" />

    <br />
    <br />

    <p:graphicImage 
      library="imagens" 
      name="loading_ring_1.gif"
      width="70px"
      height="70px" />
  </p:blockUI>

Bean method:

public void inicializar() throws SistemaException {

    inicializaConfiguracaoGrafico();

    Cliente clienteLogado = seguranca.getClienteAutenticado();
    carregar(clienteLogado);
    idFilialSelecionado = clienteLogado.getCodAtual();

    criarGraficoQuantidadeUnidadeBarChartModelo();
    criarGraficoQuantidadePorcentagemBarChartModelo();
    criarGraficoValorPorcentagemBarChartModelo();
    criarGraficoValorUnidadeBarChartModelo();

    trataMudancaGrafico();

    RequestContext context = RequestContext.getCurrentInstance();
    context.update("controleGrafico");

}
    
asked by anonymous 25.09.2017 / 15:31

0 answers