6 Replies Latest reply on May 4, 2010 11:23 AM by Lonnie Lewis

    Weblogic Portal 10gR3 + Richfaces issue

    Priya P Newbie

      I am trying to build a JSF 1.1 portlet with RichFaces implementation(Also tried with JSF 1.2 and richfaces 3.3.0.GA on WL 10.3).

      Although, the portlet gets displayed with out any errors. I do not see the RichFaces capabilities getting executed such as "A4J:support" tag is not doing an Ajax based form validation.

      Any help on this? Are there any completed PoCs on RF compatibility with JSF portlets.

        • 2. Re: Weblogic Portal 10gR3 + Richfaces issue
          Priya P Newbie

          Hi,

          Thanks for the response. The shared code works fine. But it uses xhtml pages. I tried implementing the same using jsp. It throws the following exception -

          javax.portlet.faces.BridgeException: javax.portlet.faces.BridgeException: Error processing render lifecyclejavax.portlet.PortletException: Error process faces request
          at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:354)
          at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:312)
          at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
          at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:293)
          at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
          at com.bea.portlet.container.PortletStub.render(PortletStub.java:401)
          at com.bea.portlet.container.AppContainer.renderStub(AppContainer.java:946)
          at com.bea.portlet.container.AppContainer.invokeRender(AppContainer.java:878)
          at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireRender(JavaPortletContent.java:264)
          at com.bea.netuix.servlets.controls.content.JavaPortletContent.renderInternal(JavaPortletContent.java:159)
          at com.bea.netuix.servlets.controls.content.JavaPortletContent.beginRender(JavaPortletContent.java:106)
          at com.bea.netuix.servlets.controls.application.laf.ContentControlRenderer.beginRender(ContentControlRenderer.java:48)
          at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)

          Any jars/settings reqd to make jsp implementing richfaces work?

          • 3. Re: Weblogic Portal 10gR3 + Richfaces issue
            Nick Belaevski Master

            Hi,

            I can reproduce this too:

            Caused by: java.lang.ClassCastException: com.bea.portlet.container.RenderRequestImpl cannot be cast to javax.servlet.ServletRequest
             at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:136)
             at com.bea.portlet.adapter.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:77)
             at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:547)
             at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
             at org.jboss.portletbridge.application.PortletViewHandler.renderView(PortletViewHandler.java:228)
             at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:547)
             at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
             at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
             at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
             at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
             ... 83 more


            Looks like the issue is caused by problems in JSF implementation:
            ServletRequest request = (ServletRequest) extContext.getRequest();
             ServletResponse response = (ServletResponse) extContext.getResponse();


            • 4. Re: Weblogic Portal 10gR3 + Richfaces issue
              Lonnie Lewis Newbie

              Nick,

              Would you mind posting your PoC again? We're getting the RichFaces components to work, but the style sheets aren't being loaded so we're getting no styling and a4j isn't working at all.

               

              Thanks

              Lonnie

              • 5. Re: Weblogic Portal 10gR3 + Richfaces issue
                Nick Belaevski Master

                Lonnie,

                 

                Sorry, but I can't. The file seems to be lost.

                • 6. Re: Weblogic Portal 10gR3 + Richfaces issue
                  Lonnie Lewis Newbie

                  Ok, thanks anyway, Nick.


                  Does anyone else have a simple example, Weblogic Portal 10.3.2 example using RichFaces? It would be GREATLY appreciated.