Been searching for this but can't find any answers.
I am currently working on a web app where in I need to attach a csv file which contains the values from p:datatable.
i have an "export to csv" button which uses primefaces exporter and this is working fine.
i also have other button "sendEmail", which opens like a new email message. what i am trying to do is to automatically attach the csv exported file to that new email message window when i click this button. but have no idea how to do this.
Help is greatly appreciated.