I would like to get the id of venda
in the print class of the page, and it is null, and I am using it to compare with idvenda
with the parameter created in jasper.
impress.html
<p:commandLink title="Imprimir" action="#{relatorioMB.emitir}" ajax="false" target="_blank" >
<i class="fa fa-print"></i> Imprimir teste
<f:setPropertyActionListener target="#{vendaMB.venda}" value="#{lin}" />
</p:commandLink>
I used <f:setPropertyActionListener target="#{vendaMB.venda}" value="#{lin}" />
, but only works on vendaMB
.
ImpressionReport.java
private Venda venda; parametros.put("idvenda", venda.getIdvenda());