From b3ce1f45af6bcd7071101c415760180c17607f4b Mon Sep 17 00:00:00 2001 From: Jonnathan Quijano Date: Mon, 22 Feb 2016 18:44:09 -0500 Subject: [PATCH] Enable multipar support Enables multipart support for file upload with prime faces --- .../webapp/WEB-INF/spring/root-context.xml | 3 ++- .../src/main/webapp/WEB-INF/web.xml | 23 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/spring/root-context.xml b/primefaces-showcase/src/main/webapp/WEB-INF/spring/root-context.xml index 486e22d..5c952e6 100644 --- a/primefaces-showcase/src/main/webapp/WEB-INF/spring/root-context.xml +++ b/primefaces-showcase/src/main/webapp/WEB-INF/spring/root-context.xml @@ -5,5 +5,6 @@ - + diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/web.xml b/primefaces-showcase/src/main/webapp/WEB-INF/web.xml index 6a5aec8..162cd84 100644 --- a/primefaces-showcase/src/main/webapp/WEB-INF/web.xml +++ b/primefaces-showcase/src/main/webapp/WEB-INF/web.xml @@ -77,6 +77,14 @@ /WEB-INF/spring/appServlet/servlet-context.xml 1 + + + /tmp + 5242880 + 20971520 + 0 + + @@ -84,6 +92,21 @@ /app/* + + + + Allows the application to accept multipart file data. + + springMultipartFilter + springMultipartFilter + org.springframework.web.multipart.support.MultipartFilter + + + + springMultipartFilter + /* + + PrimeFaces FileUpload Filter org.primefaces.webapp.filter.FileUploadFilter