When opening a dialog block tabs

Asked

Viewed 144 times

0

Headlines

How to do so when opening this dialog, block the tabs not to be clicked on my screen.

 <p:dialog id ="dlgPagamentos"     
                          widgetVar="dlgPagamentos"
                          closable="true"
                          resizable="false"
                          header="Pagamentos"                          
                          modal="true"
                          onHide="tabelaPagamentosWdg.unselectAllRows();">    

                    <p:dataTable id="tabelaPagamentos" var="pagamento" widgetVar="tabelaPagamentosWdg"
                                 value="#{criticaIncorparacaoPagamento.bean.pagamentos}"
                                 paginator="true" rows="5" style="width: auto; height: auto; margin:6px auto;"
                                 paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                                 rowsPerPageTemplate="5,10,15"
                                 rowKey="#{pagamento}"
                                 selection="#{criticaIncorparacaoPagamento.bean.pagamento}"
                                 selectionMode="single":>                                 

                        <p:ajax event="rowSelect" update=":frmCritica"  
                                listener="#{criticaIncorparacaoPagamento.carregarTelaIncorporacao}" />                               

                        <p:column headerText="Código de Barras" style="text-align: center;">
                            <h:outputText value="#{pagamento.codgBarraPagamento}" />
                        </p:column>

                        <p:column headerText="Autênticação" style="text-align: center;">
                            <h:outputText value="#{pagamento.numrAutenticacaoBancaria}" />
                        </p:column>

                        <p:column headerText="Data Pagamento" style="text-align:center;">
                            <h:outputText value="#{pagamento.dataPagamentoBanco}">
                                <f:convertDateTime pattern="dd/MM/yyyy" locale="pt_BR" timeZone="UTC-3" />
                            </h:outputText>
                        </p:column>                        

                        <p:column headerText="Valor Pagamento" style="text-align: center;" >
                            <h:outputText value="#{pagamento.valorRecebidoPagamento}" > 
                                <f:convertNumber pattern="###,##0.00" />
                            </h:outputText>
                        </p:column>

                        <p:column  headerText="Agência Arrecadadora" style="text-align: center; width: 250px;">
                            <h:outputText value="#{pagamento.agenciaBancaria.nomeAgencia eq null ? pagamento.codgAgenciaBancaria : pagamento.agenciaBancaria.nomeAgencia}" />
                        </p:column> 
                    </p:dataTable>
                </p:dialog>

2 answers

0

0

On my button I am using this way, within my command method run my dialog.

 <p:commandButton style="width: 100px;"                                                
                  value="Pesquisar"
                  action="#{criticaIncorparacaoPagamento.buscarPagamentos}"            
                  update=":frmCritica"/>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.