1 Reply Latest reply on Apr 9, 2010 6:30 PM by Gaël Beaudoin

    Download file inside seam pdf

    Shervin Asgari Master


      Does anybody know how I can initiate a download of a file from a seam pdf?

      This is the portion of the code I have right now.

      <a:repeat var="file" value="#{attachment.files}" rowKeyVar="row">
      <s:link action="#{fileHandler.downloadById()}" value="#{file.name}" >
              <f:param  name="fileId" value="#{file.id}"/>

      This generates a link on the pdf with the link:


      This is obviously an invalid link, however, if I change /project to the servletpath,


      Then the download file dialog appears. Now, does anybody know how I can achieve this?