incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Hamacher" <thamac...@project-team.de>
Subject Re[2]: No RenderingContext with ajax4jsf + Seam
Date Tue, 27 Feb 2007 17:34:05 GMT
Matthias,

yes - unfortunately I did everything, that´s mentioned in there.
The problem is, that ajax4jsf / Seam / Trinidad basicly works together, so I guess the general
configuration should be okay.
But in this case it doesn´t work anyways.

thx,

Thomas

*********** REPLY SEPARATOR  ***********

On 27.02.2007 at 18:18 Matthias Wessendorf wrote:

>Thomas-
>
>did you took a look at:
>
>http://wiki.apache.org/myfaces/TrinidadSeamAjax4Jsf
>
>I only see the ViewHandler for Ajax4JSF in place
>
>thx,
>Matthias
>
>On 2/27/07, Thomas Hamacher <thamacher@project-team.de> wrote:
>> Hi @all,
>>
>> I try using ajax4jsf 1.0.6 together with Trinidad, which works quite
>well so far and I can use most of the ajax4jsf-components. The only thing,
>that does not work until now is using the ajaxListener
>type="org.ajax4jsf.ajax.ForceRender" in a h:dataTable. What I want to do
>is to rerender my selected row, so that I can display a
>delete-confirmation-box through setting a flag and rerendering a defined
>part of the page. The ajax-request works perfectly, but unfortunately I
>get an exception afterwards.
>>
>> As I´m using the combination of Seam 1.1.6, MyFaces 1.1.5, ajax4jsf
>1.0.6, facelets and a nightly build of trinidad, I don´t really know what
>part causes this exception.
>>
>> This is a short code-fragment:
>>
>> <h:dataTable var="profile" value="#{ProfileList}"
>rendered="#{ProfileList.rowCount>0}">
>>             <h:column>
>>                 <a4j:commandButton    id="command_link_up"
>>                                       value="Delete"
>>                                       reRender="profile,
>deleteConfirmation"
>>                                      
>action="#{OverviewAction.registerPublisherProfile}" >
>>                     <a4j:ajaxListener
>type="org.ajax4jsf.ajax.ForceRender" />
>>                 </a4j:commandButton>
>>
>>
>>                 <a4j:outputPanel id="deleteConfirmation"
>ajaxRendered="true">
>>                     <h:panelGroup id="deleteConfirmationPanel"
>rendered="#{OverviewAction.deleteRequested}" >
>>                         <div class="colored">
>>                             <tr:outputText
>value="#{messages['deleteProfile.confirmationText']}" />
>>                             ...
>>                     </h:panelGroup>
>>                 </a4j:outputPanel>
>>             </h:column>
>> ...
>> And this is the exception I get:
>>
>>
>> 17:58:43,342 ERROR [SeamExceptionFilter()] uncaught exception
>> javax.servlet.ServletException: No RenderingContext
>>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:210)
>>         at
>org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:167)
>>         at
>org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:140)
>>         at
>org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:93)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
>>         at
>org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
>>         at
>org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
>>         at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>         at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>         at
>org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
>>         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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
>>         at java.lang.Thread.run(Thread.java:619)
>> 17:58:43,342 ERROR [SeamExceptionFilter()] exception root cause
>> java.lang.IllegalStateException: No RenderingContext
>>         at
>org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:159)
>>         at
>org.apache.myfaces.trinidad.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:668)
>>         at
>org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:412)
>>         at
>org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:400)
>>         at
>org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:78)
>>         at
>javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
>>         at
>org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:249)
>>         at
>org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:225)
>>         at
>org.ajax4jsf.renderers.ajax.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:74)
>>         at
>javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:527)
>>         at
>org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:245)
>>         at
>org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxChild(AjaxChildrenRenderer.java:120)
>>         at
>org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxChild(AjaxChildrenRenderer.java:111)
>>         at
>org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxChild(AjaxChildrenRenderer.java:111)
>>         at
>org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:126)
>>         at
>org.ajax4jsf.framework.ajax.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:570)
>>         at
>org.ajax4jsf.framework.ajax.AjaxContext.renderAjaxRegion(AjaxContext.java:301)
>>         at
>org.ajax4jsf.framework.ajax.AjaxContext.renderSubmittedAjaxRegion(AjaxContext.java:233)
>>         at
>org.ajax4jsf.framework.ajax.AjaxContext.renderSubmittedAjaxRegion(AjaxContext.java:226)
>>         at
>org.ajax4jsf.ajax.ForceRender.processAjaxRender(ForceRender.java:45)
>>         at
>org.ajax4jsf.framework.ajax.AjaxRenderEvent.processListener(AjaxRenderEvent.java:43)
>>         at
>javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:487)
>>         at
>org.ajax4jsf.framework.ajax.AjaxActionComponent.broadcast(AjaxActionComponent.java:73)
>>         at javax.faces.component.UIData.broadcast(UIData.java:517)
>>         at
>org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:274)
>>         at
>org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastAjaxEvents(AjaxViewRoot.java:290)
>>         at
>org.ajax4jsf.framework.ajax.AjaxViewHandler.processAjaxEvents(AjaxViewHandler.java:269)
>>         at
>org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:218)
>>         at
>org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
>>         at
>org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
>>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:210)
>>         at
>org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:167)
>>         at
>org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:140)
>>         at
>org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:93)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
>>         at
>org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
>>         at
>org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
>>         at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>         at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>         at
>org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
>>         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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
>>         at java.lang.Thread.run(Thread.java:619)
>> 17:58:43,372 INFO  [Exceptions()] reading exception mappings from
>/WEB-INF/pages.xml
>> 17:58:43,412 ERROR [DebugPageHandler()] redirecting to debug page
>> java.lang.IllegalStateException: No RenderingContext
>>         at
>org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:159)
>>         at
>org.apache.myfaces.trinidad.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:668)
>>         at
>org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:412)
>>         at
>org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:400)
>>         at
>org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:78)
>>         at
>javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
>>         at
>org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:249)
>>         at
>org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:225)
>>         at
>org.ajax4jsf.renderers.ajax.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:74)
>>         at
>javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:527)
>>         at
>org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:245)
>>         at
>org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxChild(AjaxChildrenRenderer.java:120)
>>         at
>org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxChild(AjaxChildrenRenderer.java:111)
>>         at
>org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxChild(AjaxChildrenRenderer.java:111)
>>         at
>org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:126)
>>         at
>org.ajax4jsf.framework.ajax.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:570)
>>         at
>org.ajax4jsf.framework.ajax.AjaxContext.renderAjaxRegion(AjaxContext.java:301)
>>         at
>org.ajax4jsf.framework.ajax.AjaxContext.renderSubmittedAjaxRegion(AjaxContext.java:233)
>>         at
>org.ajax4jsf.framework.ajax.AjaxContext.renderSubmittedAjaxRegion(AjaxContext.java:226)
>>         at
>org.ajax4jsf.ajax.ForceRender.processAjaxRender(ForceRender.java:45)
>>         at
>org.ajax4jsf.framework.ajax.AjaxRenderEvent.processListener(AjaxRenderEvent.java:43)
>>         at
>javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:487)
>>         at
>org.ajax4jsf.framework.ajax.AjaxActionComponent.broadcast(AjaxActionComponent.java:73)
>>         at javax.faces.component.UIData.broadcast(UIData.java:517)
>>         at
>org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:274)
>>         at
>org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastAjaxEvents(AjaxViewRoot.java:290)
>>         at
>org.ajax4jsf.framework.ajax.AjaxViewHandler.processAjaxEvents(AjaxViewHandler.java:269)
>>         at
>org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:218)
>>         at
>org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
>>         at
>org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
>>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:210)
>>         at
>org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:167)
>>         at
>org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:140)
>>         at
>org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:93)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
>>         at
>org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
>>         at
>
>
>-- 
>Matthias Wessendorf
>http://tinyurl.com/fmywh
>
>further stuff:
>blog: http://jroller.com/page/mwessendorf
>mail: mwessendorf-at-gmail-dot-com




Mime
View raw message