I am using p:dataExporter tag to export my results in dataTable to various file formats. For PDF and XLS its working fine but for CSV and XLS its not.
When I try to download the file in CSV/XML format; file does not download, instead it opens in the same browser tab as a html page.
Here is my code to data Export:
and Here is the call to the Dialog.
It was working fine when I did not introduced the interactive dialog,