I have a problem when entering the data to a form, when I enter dates and text there is no problem, uploads without problems to the database, but when you put the label:
<p:fileUpload mode="simple" value="#{formularioController.cargar}" />
It does not go up, it's more the upload button stays in active position and does not do anything, it does not give an error message and when I put a stop in the controller, it does not enter the controller, it stops before not even entering the controller, which has this in its part of the file:
private UploadedFile cargar;
public UploadedFile getCargar() {
return cargar;
}
public void setCargar(UploadedFile file) throws IOException {
this.cargar = file;
}
I thought it's my web.xml but this is the import as the manual says:
<filter>
<filter-name>PrimeFaces FileUpload Filter</filter-name>
<filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>PrimeFaces FileUpload Filter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
If I remove this tag ("p: fileUpload ...") the form works great. I read the official documentation of primefaces and I am sure that I am using it as recommended. is inside a:
<h:form enctype="multipart/form-data">
and it is really all within the form that stops working when I put this label, maybe I need to import something, I'm not sure anymore and I do not know where else to look. I hope you can give me a hand. my bookstores are: