I have a button that is within <p:toolbarGroup>
where I perform some operations, I also have a <p:panelGrid>
that should be rendered after the user clicks the button, but I can not update this component. I can update the table and values of toolbarGroup
but the rest do not.
Button code:
<p:commandButton value="Gerar Relatórios" style="margin-left:10px"
actionListener="#{relatorioBean.gerarRelatorio()}"
rendered="#{relatorioBean.listaVazia == true}" id="btnGerar"
update=":msgGlobal :frmPrin:arquivoTable :frmPrin:pnlCadastro" />
PanelGrild:
<p:panelGrid columns="2" id="pnlCadastro"
style="width:100%;margin-top:20px" columnClasses="rotulo, campo"
rendered="#{relatorioBean.listaVazia == false}">
As you can see this panel is only rendered when the condition is false, but when I click the button the condition changes to false, only the panel does not update itself.
The component is only updated after a F5
. Why is not the update working? Am I forgetting something?