I looked every where for a working example of uploading a file with jsf 2 and primefaces and I tried so many alternatives but it is still not working I added the filter in the web.xml then i created the managed bean with its listener method and finally added the
<p:fileUpload fileUploadListener="#{fileUploadController.handleFileUpload}"/>
as it's shown in the official site of primefaces here.
I also added the commons-file and common-io jars
No results thus far, what am I doing incorrectly?