ErickRAR 8 de jan. de 2014
Esse seu ListarDif é para recuperar a lista do outro dataTable? Se for, basta acrescentar o update no commandLink para atualizar o outro Datatable. algo do tipo:
<h:commandLink action="#{bo119ReapBean.listarDif}" update=":outroDataTable" value="#{bo119Reap.totalDifEstoque}" id="carregaEstoquex323" >
Acredito que os dois datatables devam ficar em forms separados.
robsonsan 8 de jan. de 2014
Feras,
e isso mesmo,
tentei fazer essa alteração mas não funcionou,
coloquei o outro DataTable dentro de outro <h:form> quando clico no commandLink ele oculta o DataTable com os resultados e o DataTable detalhado não exibe por cima do outro, abaixo esta como esta o DataTable detalhado e a alteração
<h:commandLink action= "#{bo119ReapBean.listarDif}" value= "#{bo119Reap.totalDifEstoque}" id= "carregaEstoquex323" update= ":dtTblTranspEntrega" >
<f:setPropertyActionListener value= "#{bo119Reap}" target= "#{bo119ReapBean.selectedBo119Reapresentacao}" />
<f:setPropertyActionListener value= "5" target= "#{bo119ReapBean.codRelatorio}" />
</h:commandLink>
<h:form id= "dtDetalhe" >
<p:dialog header= "Diferença Reapresentação ao Emissor" widgetVar= "dialogChargeBack"
resizable= "false" modal= "true" showEffect= "fade" width= "1300" id= "chargeBackDlg" >
<p:dataTable var= "tbBo119DifAnalitico" value= "#{bo119ReapBean.listaBo119DifAnalitico}"
paginator= "true" rows= "15"
emptyMessage= "Diferença não encontrada"
paginatorTemplate= "{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate= "50,100,150"
id= "dtTblTranspEntrega" scrollable= "true" scrollHeight= "300" >
</p:dataTable>
</p:dialog>
robsonsan 8 de jan. de 2014
Feras,
consegui abrir o Modal, porém não esta carregando as informações nele porque isso ?
<h:commandLink action= "#{bo119ReapBean.listarDif}" value= "#{bo119Reap.totalDifEstoqueOutgoing}" id= "carregaEstoquexOutgoing" onclick= "dialogChargeBack.show();return false" >
<f:setPropertyActionListener value= "#{bo119Reap}" target= "#{bo119ReapBean.selectedBo119Reapresentacao}" />
<f:setPropertyActionListener value= "7" target= "#{bo119ReapBean.codRelatorio}" />
</h:commandLink>
<p:dialog header= "Diferença Reapresentação ao Emissor" widgetVar= "dialogChargeBack"
resizable= "false" modal= "true" showEffect= "fade" width= "1300" id= "chargeBackDlg" >
<p:dataTable var= "tbBo119DifAnalitico" value= "#{bo119ReapBean.listaBo119DifAnalitico}"
paginator= "true" rows= "15"
emptyMessage= "Diferença não encontrada"
paginatorTemplate= "{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate= "50,100,150"
id= "dtTblTranspEntrega" scrollable= "true" scrollHeight= "300" >
</p:dataTable>
</p:dialog>
robsonsan 9 de jan. de 2014
Feras,
consegui irei postar para futuras duvidas
aqui o commandLink que esta dentro do meu columm do dataTable
<p:commandLink action= "#{bo119ReapBean.listarDif}" value= "#{bo119Reap.totalDifEstoque}" id= "carregaEstoquex323" update= ":formReap:chargeBackDlg" oncomplete= "dialogChargeBack.show();" >
<f:setPropertyActionListener value= "#{bo119Reap}" target= "#{bo119ReapBean.selectedBo119Reapresentacao}" />
<f:setPropertyActionListener value= "5" target= "#{bo119ReapBean.codRelatorio}" />
</p:commandLink>
<p:dialog header= "Diferença" widgetVar= "dialogChargeBack"
resizable= "false" modal= "true" showEffect= "fade" width= "1300" id= "chargeBackDlg" >
<p:dataTable var= "tbBo119DifAnalitico" value= "#{bo119ReapBean.listaBo119DifAnalitico}"
paginator= "true" rows= "15"
emptyMessage= "Diferença não encontrada"
paginatorTemplate= "{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate= "50,100,150"
id= "dtTblTranspEntrega" scrollable= "true" scrollHeight= "300" >
.
.
.
.
</p:dataTable>
</p:dialog>