7 Replies Latest reply on Nov 14, 2010 6:25 PM by Carlos Hdz

    rich:fileUpload one example please!!!

    Carlos Hdz Newbie

      I try to use s:fileupload but i cant use with ajax  = (

       

       

      I'm cant found one example that work it fine with rich:fileupload

       

      someone has an example = ( please!!

       

       

      I'm Use

      Jboss: 3.0.0 G.A.

       

      P.S. the example of exadel LiveDemo

      http://livedemo.exadel.com/richfaces-demo/richfaces/fileUpload.jsf?c=fileUpload&tab=usag

      always value is null = (

        • 1. Re: rich:fileUpload one example please!!!
          Ilya Shaikovsky Master

          which JSF version you using? And RF? And show web.xml.

          • 2. Re: rich:fileUpload one example please!!!
            Carlos Hdz Newbie

            JSF: 1.2

            Rifch Faces: 3.1

             

            web.xml

             

            <?xml version="1.0" encoding="UTF-8"?>
            <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
                xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
                id="WebApp_ID" version="2.5">
                <display-name>a</display-name>
                <welcome-file-list>
                    <welcome-file>index.html</welcome-file>
                    <welcome-file>index.htm</welcome-file>
                    <welcome-file>index.jsp</welcome-file>
                    <welcome-file>default.html</welcome-file>
                    <welcome-file>default.htm</welcome-file>
                    <welcome-file>default.jsp</welcome-file>
                </welcome-file-list>
                <servlet>
                    <servlet-name>Faces Servlet</servlet-name>
                    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                    <load-on-startup>1</load-on-startup>
                </servlet>
                <servlet-mapping>
                    <servlet-name>Faces Servlet</servlet-name>
                    <url-pattern>*.seam</url-pattern>
                </servlet-mapping>
                <context-param>
                    <param-name>org.richfaces.SKIN</param-name>
                    <param-value>classic</param-value>
                </context-param>
                <listener>
                    <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
                </listener>
                <filter>
                    <filter-name>Seam Filter</filter-name>
                    <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
                </filter>
                <filter-mapping>
                    <filter-name>Seam Filter</filter-name>
                    <url-pattern>/*</url-pattern>
                </filter-mapping>
                <servlet>
                    <servlet-name>Seam Resource Servlet</servlet-name>
                    <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
                </servlet>
                <servlet-mapping>
                    <servlet-name>Seam Resource Servlet</servlet-name>
                    <url-pattern>/seam/resource/*</url-pattern>
                </servlet-mapping>
                <context-param>
                    <param-name>facelets.DEVELOPMENT</param-name>
                    <param-value>true</param-value>
                </context-param>
                <context-param>
                    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                    <param-value>.xhtml</param-value>
                </context-param>

                <context-param>
                    <param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>
                    <param-value>true</param-value>
                </context-param>

                <security-constraint>
                    <display-name>Restrict raw XHTML Documents</display-name>
                    <web-resource-collection>
                        <web-resource-name>XHTML</web-resource-name>
                        <url-pattern>*.xhtml</url-pattern>
                    </web-resource-collection>
                    <auth-constraint />
                </security-constraint>
            </web-app>
            • 3. Re: rich:fileUpload one example please!!!
              Nick Belaevski Master

              Carlos,

               

              rich:fileUpload is available since RF 3.2.0, so in 3.1 it won't work.

              • 4. Re: rich:fileUpload one example please!!!
                Carlos Hdz Newbie

                that version is stable?

                or any?

                 

                Tnks Nick Belaevski  and Ilya Shaikovsky  !!!

                • 5. Re: rich:fileUpload one example please!!!
                  Ilya Shaikovsky Master

                  3.3.3.Final - most stable one

                  • 6. Re: rich:fileUpload one example please!!!
                    Carlos Hdz Newbie

                    Tnks for all Ilya Shaikovsky !

                    • 7. Re: rich:fileUpload one example please!!!
                      Carlos Hdz Newbie

                      Hi Ilya Shaikovsky

                       

                      Now I use  rich 3.3.3 but the problem persist = ( you have an other idea?