title: parsing uploaded csv file with JSF ManagedBean
body: <p>I have a maven web application in which I use JSF and spring. I want to parse a csv uploaded file with fileUploadListener. The file is uploaded, but I don't know how to get data from it and store it in database:</p>
  <pre><code> &lt;h:outputLabel value=&quot;Choose your file : *&quot; /&gt;
                   &lt;p:fileUpload  mode=&quot;advanced&quot;  fileUploadListener=&quot;#{campagneMB.handleFileUpload}&quot; update=&quot;growl&quot;
                sizeLimit=&quot;4000000&quot; allowTypes=&quot;/(\.|\/)(csv)$/&quot;/&gt;
  </code></pre>
  <p>my file has this form:</p>
  <pre><code>xxxx#xxxxx#xxxxx
  </code></pre>