I have the code below it only renders if the contracts.adminopdf is 1
But with this code it does not go into the method of the actionlistener but if I remove this rendered, the actionlistener calls normal
What am I 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" />