title: How to directly export a collection of DTOs to CSV, Excel or PDF?
body: <p>I have a <code>List&lt;MyDto&gt;</code> which I want to export with PrimeFaces. I tried with <code>&lt;p:dataExporter&gt;</code>, but it seems that it only uses UI <code>&lt;p:dataTable&gt;</code> content.</p>
  
  <p>How can I directly export a list of DTOs to CSV, Excel or PDF?</p>