4 Replies Latest reply on Mar 27, 2013 9:19 AM by rukbat

    file download listener with client listener

      <af:commandLink text="Save as a file" id="cl1" partialSubmit="true"
      styleClass="Text Button" inlineStyle="width:88px;">

      <af:fileDownloadActionListener contentType="text/csv" filename="Payment.csv"
      <af:clientListener method="closeWindow" type="action"/>


      function closeWindow(){

      When I click this command link the file was downloaded. But contains this window was not closed. I want to close this window automatically, once the file has been downloaded. I have tried calling javascript through backing bean also. That is also not work.

      Pls tell me, Is there another way to close window automatically once the file downloaded.

      please , Help me

      Thanks in advance.