0 Replies Latest reply on Jan 2, 2014 10:57 AM by domen91

    WildFly CR1, PrettyFaces and file upload

    domen91

      First of all, happy new year

       

      I have problem with file upload if I use PrimeFaces 4 & PrettyFaces (rewrite-servlet-2.0.9.Final.jar & rewrite-config-prettyfaces-2.0.9.Final.jar).

       

      Without PrettyFaces file upload with PF4 works great, but when I use (pretty-config.xml):

       

          <url-mapping id="upload">

              <pattern value="/upload" />

              <view-id value="/uploadTest.xhtml" />

          </url-mapping>

       

      Neither /upload neither /uploadTest.xhtml don't work.

       

      JSF:

      <h:form enctype="multipart/form-data">

          <p:fileUpload fileUploadListener="#{test.fileUpload}" mode="advanced" />

      </h:form>

       

      Here Pretty & PrimeFaces FileUpload is solution for Tomcat AS. Is this also possible in WildFly/UndertowIO?

       

      Also doesn't work with this:

      <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>

          <url-pattern>/*</url-pattern>

          <servlet-name>Faces Servlet</servlet-name>

          <dispatcher>FORWARD</dispatcher>

         </filter-mapping>

       

      Thanks for help.

      Domen