0
I would like to receive the id of venda
in the print class of the page, being that it comes null, and I am using it to compare with the idvenda
with the parameter created in Jasper.
html print.
<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 in vendaMB
.
Impressaorelatorio.java
private Venda venda; parametros.put("idvenda", venda.getIdvenda());
very good, just forgot to mention that I use another daughter class of impressaMB, and where is to be used the
this.vendaMB.getVenda().getIdvenda();
– Guilherme Costa
and how I do when it’s another class without being BEAN?
– Guilherme Costa
could better specify your scenario?
– Victor Hugo