6 Replies Latest reply on Apr 10, 2008 6:48 AM by Ilya Shaikovsky

    RichFaces File Upload in 3.1.4 GA

    Nagarajan Sivakumar Newbie

      Is the FileUpload component not available for 3.1.4 GA ? If so can some one point to the right version of Richfaces which supports file upload ?

      I can see the example on Exadel site working.

      NS

        • 2. Re: RichFaces File Upload in 3.1.4 GA
          Nagarajan Sivakumar Newbie

          Hello,
          I have been trying to add the new 3.2 JARs to my app's WEB-INF\lib folder. When i start the server up, i get some errors about the faces-config.xml file inside one of the new jars as not being valid - how ever the server does start up.

          When i try to run the application i get the following error

          SEVERE: Servlet.service() for servlet Faces Servlet threw exception
          java.lang.NoSuchMethodError: javax.faces.component.UIViewRoot.addPhaseListener(Ljavax/faces/event/PhaseListener;)V
          at org.richfaces.component.DataScrollerPhaseListener.beforePhase(DataScrollerPhaseListener.java:55)
          at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:73)
          at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:126)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.cpd.spg.tfa.util.TFASessionFilter.doFilter(TFASessionFilter.java:45)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:619)

          I am not sure if i need to make any changes to the web.xml to make the new 3.2 release work - but if some one can point out as to what the error is or why it may be happening, i would appreciate it.

          Thanks,
          NS

          • 3. Re: RichFaces File Upload in 3.1.4 GA
            Sergey Smirnov Master

            You do not have to make any changes in the web.xml, but JSF 1.2 is required.

            • 4. Re: RichFaces File Upload in 3.1.4 GA
              Nagarajan Sivakumar Newbie

              Hi,
              I now have the JSF 1.2 RI but the code that was working with 3.1.4 is now running into new problems .

              The following error message seems to occur because of rich:menuItem tags not getting recognized. I have two JSPs included in a main page which have rich:MenuItems inside them - both these are enclosed by <h:form> tags and so iam not sure what the error message mean . Has any one run into this problem yet ?

              executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@12478a9) threw exception

              javax.faces.FacesException: Parent menu for menu group (id=j_id_jsp_2145090576_0pc2:j_id_jsp_2145090576_2pc2) has not been found.
              at org.richfaces.renderkit.html.MenuItemRendererDelegate.getParentMenu(MenuItemRendererDelegate.java:167)
              at org.richfaces.renderkit.html.MenuItemRendererDelegate.processInlineStyles(MenuItemRendererDelegate.java:128)
              at org.richfaces.renderkit.html.MenuItemRendererBase.processInlineStyles(MenuItemRendererBase.java:245)
              at org.richfaces.renderkit.html.MenuItemRendererBase.initializeResources(MenuItemRendererBase.java:150)
              at org.richfaces.renderkit.html.MenuItemRenderer.doEncodeEnd(MenuItemRenderer.java:203)
              at org.richfaces.renderkit.html.MenuItemRenderer.doEncodeEnd(MenuItemRenderer.java:288)
              at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
              at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
              at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:279)
              at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
              at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
              at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
              at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
              at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
              at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
              at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
              at org.ajax4jsf.Filter.doFilter(Filter.java:175)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.cpd.spg.tfa.util.TFASessionFilter.doFilter(TFASessionFilter.java:45)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:619)

              • 5. Re: RichFaces File Upload in 3.1.4 GA
                Sergey Smirnov Master

                Yes, rich:menuItem cannot be used outside of the rich:menu is 3.2.0

                • 6. Re: RichFaces File Upload in 3.1.4 GA
                  Ilya Shaikovsky Master

                  it will be changed soon. RFC to allow standalone menuItem usage - already created.