1 Reply Latest reply on Apr 7, 2011 3:43 PM by Victor Augusto Zago Menegusso

    rich:fileUpload problems upload files

    Victor Augusto Zago Menegusso Newbie

      Hello everybody

      my problem is...

      component in the rich: fileupload the method is not called fileUploadListener

       

      sometimes the transfer is said to be finished or wrong, but even with a message saying that the transfer was made, it is not uploaded

       

      i using richfaces 3.3.3

       

      my web.xml


      <?xml version="1.0" encoding="UTF-8"?>
      
      
      <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee                          http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
                <display-name>Operador</display-name>
                <context-param>
                          <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                          <param-value>.xhtml</param-value>
                </context-param>
                <context-param>
                          <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                          <param-value>server</param-value>
                </context-param>
                <context-param>
                          <param-name>javax.portlet.faces.renderPolicy</param-name>
                          <param-value>NEVER_DELEGATE</param-value>
                </context-param>
                <context-param>
                          <param-name>org.richfaces.SKIN</param-name>
                          <param-value>blueSky</param-value>
                </context-param>
                <context-param>
                          <param-name>org.richfaces.CONTROL_SKINNING</param-name>
                          <param-value>enable</param-value>
                </context-param>
                <context-param>
                          <param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>
                          <param-value>true</param-value>
                </context-param>
                <filter>
                          <filter-name>richfaces</filter-name>
                          <filter-class>org.ajax4jsf.Filter</filter-class>
                          <init-param>
                                    <param-name>createTempFiles</param-name>
                                    <param-value>false</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>maxRequestSize</param-name>
                                    <param-value>550000</param-value>
                          </init-param>
                </filter>
                <filter>
                          <filter-name>Cache Filter - Resource</filter-name>
                          <filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
                          <init-param>
                                    <param-name>filter-class</param-name>
                                    <param-value>com.liferay.portal.servlet.filters.cache.CacheFilter</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>url-regex-ignore-pattern</param-name>
                                    <param-value>.+/-/.+</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>pattern</param-name>
                                    <param-value>2</param-value>
                          </init-param>
                </filter>
                <filter>
                          <filter-name>Cache Filter - Resource JSP</filter-name>
                          <filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
                          <init-param>
                                    <param-name>filter-class</param-name>
                                    <param-value>com.liferay.portal.servlet.filters.cache.CacheFilter</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>url-regex-pattern</param-name>
                                    <param-value>.+/(css|main)\.jsp</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>pattern</param-name>
                                    <param-value>2</param-value>
                          </init-param>
                </filter>
                <filter>
                          <filter-name>ETag Filter</filter-name>
                          <filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
                          <init-param>
                                    <param-name>filter-class</param-name>
                                    <param-value>com.liferay.portal.servlet.filters.etag.ETagFilter</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>url-regex-ignore-pattern</param-name>
                                    <param-value>.+/-/.+</param-value>
                          </init-param>
                </filter>
                <filter>
                          <filter-name>ETag Filter - JSP</filter-name>
                          <filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
                          <init-param>
                                    <param-name>filter-class</param-name>
                                    <param-value>com.liferay.portal.servlet.filters.etag.ETagFilter</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>url-regex-pattern</param-name>
                                    <param-value>.+/(css|main)\.jsp</param-value>
                          </init-param>
                </filter>
                <filter>
                          <filter-name>GZip Filter</filter-name>
                          <filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
                          <init-param>
                                    <param-name>filter-class</param-name>
                                    <param-value>com.liferay.portal.servlet.filters.gzip.GZipFilter</param-value>
                          </init-param>
                </filter>
                <filter>
                          <filter-name>Header Filter</filter-name>
                          <filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
                          <init-param>
                                    <param-name>filter-class</param-name>
                                    <param-value>com.liferay.portal.servlet.filters.header.HeaderFilter</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>url-regex-ignore-pattern</param-name>
                                    <param-value>.+/-/.+</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>Cache-Control</param-name>
                                    <param-value>max-age=315360000, public</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>Expires</param-name>
                                    <param-value>315360000</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>Vary</param-name>
                                    <param-value>Accept-Encoding</param-value>
                          </init-param>
                </filter>
                <filter>
                          <filter-name>Header Filter - JSP</filter-name>
                          <filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
                          <init-param>
                                    <param-name>filter-class</param-name>
                                    <param-value>com.liferay.portal.servlet.filters.header.HeaderFilter</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>url-regex-pattern</param-name>
                                    <param-value>.+/(css|main)\.jsp</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>Cache-Control</param-name>
                                    <param-value>max-age=315360000, public</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>Expires</param-name>
                                    <param-value>315360000</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>Vary</param-name>
                                    <param-value>Accept-Encoding</param-value>
                          </init-param>
                </filter>
                <filter>
                          <filter-name>Language Filter</filter-name>
                          <filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
                          <init-param>
                                    <param-name>filter-class</param-name>
                                    <param-value>com.liferay.portal.servlet.filters.language.LanguageFilter</param-value>
                          </init-param>
                </filter>
                <filter>
                          <filter-name>Minifier Filter</filter-name>
                          <filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
                          <init-param>
                                    <param-name>filter-class</param-name>
                                    <param-value>com.liferay.portal.servlet.filters.minifier.MinifierFilter</param-value>
                          </init-param>
                </filter>
                <filter>
                          <filter-name>Minifier Filter - JSP</filter-name>
                          <filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
                          <init-param>
                                    <param-name>filter-class</param-name>
                                    <param-value>com.liferay.portal.servlet.filters.minifier.MinifierFilter</param-value>
                          </init-param>
                          <init-param>
                                    <param-name>url-regex-pattern</param-name>
                                    <param-value>.+/(css|main)\.jsp</param-value>
                          </init-param>
                </filter>
                <filter-mapping>
                          <filter-name>richfaces</filter-name>
                          <servlet-name>Faces Servlet</servlet-name>
                          <dispatcher>REQUEST</dispatcher>
                          <dispatcher>FORWARD</dispatcher>
                          <dispatcher>INCLUDE</dispatcher>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Header Filter</filter-name>
                          <url-pattern>*.css</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Header Filter</filter-name>
                          <url-pattern>*.gif</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Header Filter</filter-name>
                          <url-pattern>*.html</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Header Filter</filter-name>
                          <url-pattern>*.ico</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Header Filter</filter-name>
                          <url-pattern>*.jpg</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Header Filter</filter-name>
                          <url-pattern>*.js</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Header Filter</filter-name>
                          <url-pattern>*.png</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Header Filter - JSP</filter-name>
                          <url-pattern>*.jsp</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>ETag Filter</filter-name>
                          <url-pattern>*.css</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>ETag Filter</filter-name>
                          <url-pattern>*.gif</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>ETag Filter</filter-name>
                          <url-pattern>*.html</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>ETag Filter</filter-name>
                          <url-pattern>*.ico</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>ETag Filter</filter-name>
                          <url-pattern>*.jpg</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>ETag Filter</filter-name>
                          <url-pattern>*.js</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>ETag Filter</filter-name>
                          <url-pattern>*.png</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>ETag Filter - JSP</filter-name>
                          <url-pattern>*.jsp</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Cache Filter - Resource</filter-name>
                          <url-pattern>*.css</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Cache Filter - Resource</filter-name>
                          <url-pattern>*.html</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Cache Filter - Resource</filter-name>
                          <url-pattern>*.js</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Cache Filter - Resource JSP</filter-name>
                          <url-pattern>*.jsp</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>GZip Filter</filter-name>
                          <url-pattern>*.css</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>GZip Filter</filter-name>
                          <url-pattern>*.html</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>GZip Filter</filter-name>
                          <url-pattern>*.js</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>GZip Filter</filter-name>
                          <url-pattern>*.jsp</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Language Filter</filter-name>
                          <url-pattern>*.js</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Minifier Filter</filter-name>
                          <url-pattern>*.css</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Minifier Filter</filter-name>
                          <url-pattern>*.js</url-pattern>
                </filter-mapping>
                <filter-mapping>
                          <filter-name>Minifier Filter - JSP</filter-name>
                          <url-pattern>*.jsp</url-pattern>
                </filter-mapping>
                <listener>
                          <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
                </listener>
                <listener>
                          <listener-class>com.liferay.portal.kernel.servlet.SerializableSessionAttributeListener</listener-class>
                </listener>
                <listener>
                          <listener-class>com.liferay.portal.kernel.servlet.PortletContextListener</listener-class>
                </listener>
                <servlet>
                          <servlet-name>Faces Servlet</servlet-name>
                          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                          <load-on-startup>1</load-on-startup>
                </servlet>
                <servlet>
                          <servlet-name>Operador</servlet-name>
                          <servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
                          <init-param>
                                    <param-name>portlet-class</param-name>
                                    <param-value>javax.portlet.faces.GenericFacesPortlet</param-value>
                          </init-param>
                          <load-on-startup>0</load-on-startup>
                </servlet>
                <servlet-mapping>
                          <servlet-name>Faces Servlet</servlet-name>
                          <url-pattern>/faces/*</url-pattern>
                </servlet-mapping>
                <servlet-mapping>
                          <servlet-name>Operador</servlet-name>
                          <url-pattern>/Operador/*</url-pattern>
                </servlet-mapping>
                <jsp-config>
                          <taglib>
                                    <taglib-uri>http://liferay.com/tld/aui</taglib-uri>
                                    <taglib-location>/WEB-INF/tld/liferay-aui.tld</taglib-location>
                          </taglib>
                          <taglib>
                                    <taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri>
                                    <taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
                          </taglib>
                          <taglib>
                                    <taglib-uri>http://liferay.com/tld/portlet</taglib-uri>
                                    <taglib-location>/WEB-INF/tld/liferay-portlet-ext.tld</taglib-location>
                          </taglib>
                          <taglib>
                                    <taglib-uri>http://liferay.com/tld/security</taglib-uri>
                                    <taglib-location>/WEB-INF/tld/liferay-security.tld</taglib-location>
                          </taglib>
                          <taglib>
                                    <taglib-uri>http://liferay.com/tld/theme</taglib-uri>
                                    <taglib-location>/WEB-INF/tld/liferay-theme.tld</taglib-location>
                          </taglib>
                          <taglib>
                                    <taglib-uri>http://liferay.com/tld/ui</taglib-uri>
                                    <taglib-location>/WEB-INF/tld/liferay-ui.tld</taglib-location>
                          </taglib>
                          <taglib>
                                    <taglib-uri>http://liferay.com/tld/util</taglib-uri>
                                    <taglib-location>/WEB-INF/tld/liferay-util.tld</taglib-location>
                          </taglib>
                </jsp-config>
      </web-app>