6 Replies Latest reply on Jun 1, 2007 7:10 AM by Carl Howarth

    Custom File Download with reRender using commandbutton

    Carl Howarth Newbie

      Hello there,

      I have an a4j:commandButton that generates an Excel file on the fly and downloads the file via the user's browser by writing the the response's outputstream.

      The file downloads successfully if I use a h:commandButton, however I want to reRender a historical list of downloaded files after the new file is created. If I use an a4j:commandButton, the file is generated but the whole page is rerendered with an interpretation of the Excel file, which is all nonsense!

      Can anybody point me in the right direction to perform this task cleanly?

      Any advice would be gratefully received. Thanks, Carl