1 Reply Latest reply on Jul 8, 2008 4:05 PM by Martin Jozef

    Jsf + RichFaces

    Bea Garcia Newbie

      Hello everybody!

      I'm making an application using Spring + Hibernate + JSF (+Tomahawk). All is ok, but now i want to add ajax funtionality to some components.

      More exactly I want to have a dinamic t:selectOneMenu. When i change de value I want to load a value in an h:inputTextarea. So i think the best way was to use a4j, which is now include in RichFaces

      Now my application is load, but when i select an option in the menu the following error happens:

      /jsp/home.jsfThe expected view was not returned for the view identifier: /jsp/home.jsf

      Caused by:
      javax.faces.application.ViewExpiredException - /jsp/home.jsfThe expected view was not returned for the view identifier: /jsp/home.jsf

      javax.faces.application.ViewExpiredException: /jsp/home.jsfThe expected view was not returned for the view identifier: /jsp/home.jsf
      at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:88)
      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:148)
      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:154)
      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
      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.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
      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:263)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Unknown Source)



      I'm using the following libraries:

      - myfaces-impl-1.2.3.jar
      - myfaces-api-1.2.3.jar
      - richfaces-api-3.2.1.GA.jar
      - richfaces-impl-3.2.1.GA.jar
      - richfaces-ui-3.2.1.GA.jar

      And the commons libraries.

      Any ideas for my error??


      Thanks

        • 1. Re: Jsf + RichFaces
          Martin Jozef Newbie

          The combination that you are using is broken right now
          MyFaces1.2.3 with richFaces3.2.1GA does not work

          you need to eather replace MyFaces with Sun RI JSF or
          replace richfaces with 3.2.0.SR1 or get the latest 3.2.2-SNAPSHOT

          i am in the same situation as you.

          in addition richFaces 3.1.6 and 3.1.7-SNAPSHOT also have the same problem

          so your best bet right now is RichFAces 3.2.0.SR1 that will work for you