it's only days I've embraced PrimeFaces and I am impressed with this library. Could not be happier!
Now a small problem I'm facing... I'm trying to use p:fileDownload in a p:dataTable to download one of files. I do the following:
Code: Select all
<p:commandButton title="#{msgs.download}" image="ui-icon-circle-arrow-s" action="#{afonicUserView.downloadAudio(box)}" ajax="false" immediate="true">
<p:fileDownload value="#{afonicUserView.streamedContent}"/>
</p:commandButton>
Can I make downloadAudio() method be invoked first? If not... what can be the approach to do the traditional "download" link in a dataTable?
thanks for any help,
Ignacio