This discussion is archived
4 Replies Latest reply: Mar 27, 2013 2:19 AM by rukbat RSS

file download listener with client listener

963542 Newbie
Currently Being Moderated
<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.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points