incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: Re: portlet issues
Date Wed, 09 Aug 2006 16:04:10 GMT
This is definitely a MyFaces issue.  We're not extending the faces context,
just decorating it, and the MyFaces Portlet code needs to
be able to deal with this.  Nicolas, can you flie an issue
against the MyFaces Portlet code?

Thanks,
Adam Winer


On 8/9/06, Simon_Lessard@dmr.ca <Simon_Lessard@dmr.ca> wrote:
> Hello again,
>
> I checked MyFacesGenericPortlet, the erroneous line is :
> ServletFacesContextImpl facesContext = (ServletFacesContextImpl)request
> where request happens to be the FacesContextFactoryImpl$CacheRenderKit in
> your case.  FacesContextFactoryImpl$CacheRenderKit does not extends
> ServletFacesContextImpl and probably never will since it's an internal
> MyFaces class. Personally I think it's therefore a MyFaces issue, maybe
> Matthias and/or Adam can confirm?
>
>
> Regards,
>
> Simon Lessard
> Fujitsu Consulting
>
>
>
>
>
> Nicolas Kalkhof <nkalkhof@web.de>
> 2006-08-09 03:50
> Please respond to adffaces-user
>
>         To:     adffaces-user@incubator.apache.org
>         cc:
>         Subject:        portlet issues
>
>
> hi folks,
>
> since im new to this mailing list i have no clue if this issue was
> discussed before. it seems that trinidad cannot handle faces - page
> navigation in portlets.
>
> for example:
> <tr:inputText styleClass=3D"darkblue=5Finput"
> value=3D"#{logonBean.password}" secret=3D"true"/>
> <tr:commandButton styleClass=3D"blueinputcontrol" text=3D"login"
> actionListener=3D"#{logonBean.login}"/>
>
> fires an event declared in the backing bean:
>
> public String login(ActionEvent ae) {
> .....
> return "logonSuccess";
> }
>
> my faces config implements the navigation as follows:
>
> <navigation-case>
> <from-action>#{logonBean.login}</from-action>
> <from-outcome>logonSuccess</from-outcome>
> <to-view-id>/WEB-INF/jspx/logon/view.jspx</to-view-id>
> </navigation-case>
>
> but after the event fires my portlet crashes with:
>
> Error rendering portlet.
>
> javax.portlet.PortletException:
> org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit
>                  at
> org.apache.myfaces.portlet.MyFacesGenericPortlet.handleExceptionFromLifecycle(MyFacesGenericPortlet.java:253)
>                  at
> org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:407)
>                  at
> net.portlets.logon.LogonPortlet.doView(LogonPortlet.java:88)
>                  at
> javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
>                  at
> javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
>                  at
> net.portlets.logon.LogonPortlet.render(LogonPortlet.java:71)
>                  at
> org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:204)
>                  at
> org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
>                  at
> org.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
>                  at
> org.apache.pluto.core.PortletInvoker.render(PortletInvoker.java:111)
>                  at
> org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:158)
>                  at
> org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:153)
>                  at
> org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspx_meth_pluto_portlet_0(portlet_002dskin_jsp.java:95)
>                  at
> org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(portlet_002dskin_jsp.java:70)
>                  at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
>                  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>                  at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
>                  at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
>                  at
> org.apache.jsp.WEB_002dINF.themes.index_002dtheme_jsp._jspService(index_002dtheme_jsp.java:88)
>                  at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
>                  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>                  at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>                  at
> org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:127)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>                  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>                  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>                  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>                  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>                  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>                  at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>                  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>                  at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>                  at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>                  at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>                  at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>                  at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.ClassCastException:
> org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit
>                  at
> org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:387)
>                  ... 61 more
>
> Nested Exception is java.lang.ClassCastException:
> org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit
>                  at
> org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:387)
>                  at
> net.portlets.logon.LogonPortlet.doView(LogonPortlet.java:88)
>                  at
> javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
>                  at
> javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
>                  at
> net.portlets.logon.LogonPortlet.render(LogonPortlet.java:71)
>                  at
> org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:204)
>                  at
> org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
>                  at
> org.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
>                  at
> org.apache.pluto.core.PortletInvoker.render(PortletInvoker.java:111)
>                  at
> org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:158)
>                  at
> org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:153)
>                  at
> org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspx_meth_pluto_portlet_0(portlet_002dskin_jsp.java:95)
>                  at
> org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(portlet_002dskin_jsp.java:70)
>                  at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
>                  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>                  at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
>                  at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
>                  at
> org.apache.jsp.WEB_002dINF.themes.index_002dtheme_jsp._jspService(index_002dtheme_jsp.java:88)
>                  at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
>                  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>                  at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
>                  at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>                  at
> org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:127)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>                  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>                  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>                  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>                  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>                  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>                  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>                  at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>                  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>                  at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>                  at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>                  at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>                  at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>                  at java.lang.Thread.run(Thread.java:595)
>
>
> any clues?
>
> regards,
> nicolas
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>
>
>
>

Mime
View raw message