changing CSV-Separator in exported CSV in a PrimeFaces App

PrimeFaces is a JSF Implementation, which supports with the
<p:dataExporter> the possibility to export a <p:dataTabel> to a
CSV, EXCEL or PDF file.

But for the CSV file, the separator is fixed with the sign ','. You can
not change this directly with PrimeFaces.

Therefore you have to use an extension from here. On this page you see
the dependencies for maven:

<dependency>
  <groupId>com.lapis.jsfexporter</groupId>
    <artifactId>jsf-exporter-core</artifactId>
    <version>1.0.2.Final</version>
</dependency>


<dependency>
    <groupId>com.lapis.jsfexporter</groupId>
    <artifactId>export-type-csv</artifactId>
    <version>1.0.2.Final</version>
</dependency>


<dependency>
    <groupId>com.lapis.jsfexporter</groupId>
    <artifactId>export-source-primefaces</artifactId>
    <version>1.0.2.Final</version>
</dependency>
In your JSF-Pages you have to include the namespace:

xmlns:l="http://www.lapis.com/jsf/exporter"
 and use the dataExportert from this extension:

    <l:dataExporter source="table" fileType="excel" fileName="myfile"/>
To change the separator use the option fileOptions="" and supply an
ExpressionLanguage which refers to an CSVExportOptions instance.

e.g. 
fileOptions="#{optionBean.option}"
In this bean you supply an CSVExportOptions, which can be configured
the way you like and change e.g the separator for the CSV file.