How to update dataTable component on fileDownload and ajax is false
<p>I need your help in updating the dataTable component after the user clicks on the fileDownload in primefaces. The case is that the user will click on the download file and it will download the file and at the same time, it will update the count column in the dataTableThe. The jsf code for the download file in the dataTable is:</p>

<pre><code>&lt;p:column headerText="View"&gt;
    &lt;p:commandLink id="exporter" actionListener="#{exstaff.GeneratePDF}" ajax="false"&gt;
    &lt;h:graphicImage name="/images/PDF.png"/&gt;
        &lt;p:fileDownload value="#{exstaff.pdfFile}"/&gt;
    &lt;/p:commandLink&gt;
&lt;/p:column&gt;
</code></pre>

<p>In the GenearetPDF method, I am allowing the user to download a PDF file which is downloaded properly, however, at the end of the GeneratePDF() method, I am updating the dataTable using the code:</p>

<pre><code>RequestContext context = RequestContext.getCurrentInstance();
context.update("@form");
</code></pre>

<p>But because the ajax is false, the dataTable is not updated, so how can I execute the above code? If I enable the ajax, the downloadfile will not work.</p>