org.primefaces.webapp.filter.FileUploadFilter
does not registered to my application, unless I define FileUploadFilter
explicitly in my spring configuration like;
@Bean
FileUploadFilter fileUploadFilter() {
return new FileUploadFilter();
}
Referring to this question;
If you're however not using JSF 2.2 yet and you can't upgrade it (should be effortless when already on a Servlet 3.0 compatible container), then you need to manually register the below PrimeFaces file upload filter in web.xml (it will parse the multi part request and fill the regular request parameter map so that FacesServlet can continue working as usual)
Conversely I have javax.faces in my classpath: org.glassfish:javax.faces:jar:2.2.13:compile
. (and mojarra impl)
Should we go manually with this? Or else It can not be detected and registered automatically, we have to register a manual configuration to joinfaces
UPDATE: Actually this is not directly relevant to registration of FileUploadFilter
. Embedded jetty in spring-boot does not pick up annotated configurations example of which FacesServlet
has a @MultipartConfig
annotation. I have opened an issue to spring-boot for that: