Using the tr:fileDownloadActionListener inside a tr:column I get the a
javax.servlet.ServletException: Invalid index after the download completes and
another link is clicked on the page. Has anyone experienced this?
Page:
<tr:commandLink text="Download file">
<tr:sendFileActionListener
mimeType="application/pdf" fileName="#{myBean.fileName}"
sendFileListener="#{myBean.sendFile}"/>
</tr:commandLink>
Bean:
public void sendFile(FacesContext context, OutputStream out) throws
IOException {
OutputStreamWriter w = new OutputStreamWriter(out, "UTF-8");
w.write("Test");
w.flush();
}