0
I have the code below it only renders if the.aditivopdf contracts are 1
only with this code he does not enter the actionlistener method only that if I remove that rendered, the actionlistener calls normal
what I’m missing?
<p:commandButton id="downloadAditivo"
icon="ui-icon-arrowthickstop-1-s" value="Download" ajax="false"
actionListener="#{fileUploadBean.prepDownloadAditivo}"
rendered="#{contratosMB.contratos.aditivopdf eq 1}"
>
<f:attribute name="codigo" value="#{contratosMB.contratos.id}" />
<p:fileDownload value="#{fileUploadBean.download}" />
</p:commandButton>
<p:message for="downloadAditivo" />
Have you tried using the
action
? Post the Controller code also.– Roknauta