i have datatable commandlink in each row, file database.
the code have commandlink is:
<p:commandlink title="download file" styleclass="fa fa-lg fa-download output-button" actionlistener="#{filesearchpagebean.getfiletodownload(result.id)}"> <p:filedownload value="#{filesearchpagebean.file}" /> </p:commandlink>
the function getfiletodownload in page bean makes query file , puts in file variable, in filedownload.
what happening when datatable loaded, makes queries files rows. thing want make query , specific file when link file clicked, doing wrong?
thanks!
Comments
Post a Comment