3 Replies Latest reply on Nov 16, 2007 6:29 AM by Ilya Shaikovsky

    a4j:commandButton and tr:fileDownloadActionListener

    Hans Meier Newbie

      Hi,

      I use tr:fileDownloadActionListener to download a xml file. If I use the
      <h:commandButton> everything works fine. But if I change the button to the
      <a4j:commandButton>, which I actually want to have, the file will be opened
      directly in the browser. So is there a way to go round this?


      <h:commandButton value="Download" styleClass="submit_button">
      <tr:fileDownloadActionListener filename="queryResult.xml"
      contentType="text/plain;
      charset=utf-8"
      method="#{xmlPage.download}"/>
      </h:commandButton>