I want to have a clickable image which sends two parameters to my action on click. I tried the following with <h:graphicImage>
.
<h:graphicImage url="/pic/down.png" alt="download">
<h:outputLink action="#{file.download}">
<f:param name="id" value="#{file.id}"></f:param>
<f:param name="name" value="#{file.name}"></f:param>
</h:outputLink>
</h:graphicImage>
However, it didn't work. How do I properly achieve this?