[ 
https://issues.apache.org/jira/browse/MYFACES-4245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16541614#comment-16541614
 ] 

Matthias Huber edited comment on MYFACES-4245 at 7/12/18 1:18 PM:
------------------------------------------------------------------

Hi, i think i've found the problem, but i could not reproduce it in a sample 
project. But here my thoughts:

If i do the following:

<h:selectOneRadio id="radioAntragArt" layout="pageDirection" 
styleClass="radioEntscheidungParams" style="float:left;"
 value="#\{antragBean.antragArtKind}" border="0">
<f:ajax event="click" *execute="@this"*
render="antragGebuehrenPanel antragEmpfaengerPanel radioAntragBewilligenPanel 
pdfVorschauPanel"/>

it works but if i remove

the *execute="@this"* within the selectoneradio element it ends in a 
FacesException which says that the component could not be found. I think that 
this issue is also described in 
https://issues.apache.org/jira/browse/MYFACES-4068


was (Author: hiasle):
Hi, i think i've found the problem, but i could not reproduce it in a sample 
project. But here my thoughts:

If i do the following:

{{<h:selectOneRadio id="radioAntragArt" layout="pageDirection"}}
{{ styleClass="radioEntscheidungParams" style="float:left;"}}
{{ value="#\{antragBean.antragArtKind}" border="0">}}
{{ <f:ajax event="click" *execute="@this"*}}
{{ render="antragGebuehrenPanel antragEmpfaengerPanel 
radioAntragBewilligenPanel pdfVorschauPanel"/>}}

it works but if i remove

the *execute="@this"* within the selectoneradio element it ends in a 
FacesException which says that the component could not be found. I think that 
this issue is also described in 
https://issues.apache.org/jira/browse/MYFACES-4068

> Component not found on ajax update response
> -------------------------------------------
>
>                 Key: MYFACES-4245
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4245
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.2.10, 2.2.11, 2.2.12
>            Reporter: Matthias Huber
>            Priority: Major
>
> We have a project with jsf and wanted to upgrade our myfaces version from 
> 2.2.6 to 2.2.12. On one of our pages we have a commandlink with ajax. Since 
> version higher than 2.2.9 on Ajax response we got always the following error:
> java.lang.Throwable: javax.faces.FacesException: Component with 
> id:vflForm:laufrep:3:j_id_32_2nt:radioAntragArt not found
>  at 
> at.gv.brz.sta.elias.web.exceptionhandler.EliasExceptionHandler.handle(EliasExceptionHandler.java:64)
>  at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:287)
>  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at 
> at.gv.brz.sta.elias.web.filter.EliasRoleFilter.doFilter(EliasRoleFilter.java:72)
>  at 
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)
>  at 
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:205)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at 
> at.gv.brz.bjujq.common.webcommons.filter.ASecurityFilter.doFilter(ASecurityFilter.java:128)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at 
> at.gv.brz.sta.elias.web.filter.ExceptionHandlingFilter.doFilter(ExceptionHandlingFilter.java:50)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at 
> at.gv.brz.sta.elias.web.filter.EliasEncodingFilter.doFilter(EliasEncodingFilter.java:27)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at 
> at.gv.brz.sta.elias.web.filter.RequestPerSessionSynchronizationFilter.doFilter(RequestPerSessionSynchronizationFilter.java:44)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at 
> at.gv.brz.sta.elias.web.filter.PerfRequestLoggingFilter.doFilter(PerfRequestLoggingFilter.java:69)
>  at 
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)
>  at 
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at 
> at.gv.brz.sta.elias.web.filter.LogUserFilter.doFilter(LogUserFilter.java:43)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at 
> at.gv.brz.sta.elias.web.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:45)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at 
> at.gv.brz.sta.elias.web.filter.CacheControlFilter.doFilter(CacheControlFilter.java:40)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
>  at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
>  at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
>  at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
>  at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>  at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
>  at 
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
>  at 
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
>  at 
> org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2555)
>  at 
> org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2544)
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  at 
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>  at java.lang.Thread.run(Thread.java:748)
> Caused by: javax.faces.FacesException: Component with 
> id:vflForm:laufrep:3:j_id_32_2nt:radioAntragArt not found
>  at 
> org.apache.myfaces.renderkit.html.HtmlAjaxBehaviorRenderer.getComponentId(HtmlAjaxBehaviorRenderer.java:505)
>  at 
> org.apache.myfaces.renderkit.html.HtmlAjaxBehaviorRenderer.build(HtmlAjaxBehaviorRenderer.java:467)
>  at 
> org.apache.myfaces.renderkit.html.HtmlAjaxBehaviorRenderer.mapToString(HtmlAjaxBehaviorRenderer.java:439)
>  at 
> org.apache.myfaces.renderkit.html.HtmlAjaxBehaviorRenderer.makeAjax(HtmlAjaxBehaviorRenderer.java:263)
>  at 
> org.apache.myfaces.renderkit.html.HtmlAjaxBehaviorRenderer.getScript(HtmlAjaxBehaviorRenderer.java:102)
>  at 
> javax.faces.component.behavior.ClientBehaviorBase.getScript(ClientBehaviorBase.java:101)
>  at 
> org.apache.myfaces.shared.renderkit.html.CommonEventUtils.renderBehaviorizedAttribute(CommonEventUtils.java:184)
>  at 
> org.apache.myfaces.shared.renderkit.html.CommonEventUtils.renderBehaviorizedAttribute(CommonEventUtils.java:120)
>  at 
> org.apache.myfaces.shared.renderkit.html.CommonEventUtils.renderBehaviorizedEventHandlers(CommonEventUtils.java:217)
>  at 
> org.apache.myfaces.shared.renderkit.html.HtmlRadioRendererBase.renderRadio(HtmlRadioRendererBase.java:378)
>  at 
> org.apache.myfaces.shared.renderkit.html.HtmlRadioRendererBase.renderGroupOrItemRadio(HtmlRadioRendererBase.java:267)
>  at 
> org.apache.myfaces.shared.renderkit.html.HtmlRadioRendererBase.encodeEnd(HtmlRadioRendererBase.java:126)
>  at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:675)
>  at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:555)
>  at 
> org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:688)
>  at 
> org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:150)
>  at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:675)
>  at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:555)
>  at 
> org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:688)
>  at 
> org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:150)
>  at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:675)
>  at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:555)
>  at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:551)
>  at 
> org.apache.myfaces.renderkit.html.HtmlCompositeFacetRenderer.encodeChildren(HtmlCompositeFacetRenderer.java:80)
>  at 
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:644)
>  at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:542)
>  at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:551)
>  at 
> org.apache.myfaces.renderkit.html.HtmlCompositeComponentRenderer.encodeChildren(HtmlCompositeComponentRenderer.java:66)
>  at 
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:644)
>  at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:542)
>  at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:551)
>  at 
> org.apache.myfaces.view.facelets.component.RepeatRenderer.encodeChildren(RepeatRenderer.java:78)
>  at 
> org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:922)
>  at 
> org.apache.myfaces.view.facelets.component.UIRepeat.encodeChildren(UIRepeat.java:1667)
>  at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:542)
>  at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:551)
>  at 
> org.apache.myfaces.context.servlet.PartialViewContextImpl$PhaseAwareVisitCallback.processRenderComponent(PartialViewContextImpl.java:835)
>  at 
> org.apache.myfaces.context.servlet.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:796)
>  at 
> org.apache.myfaces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:213)
>  at javax.faces.component.UIForm.visitTree(UIForm.java:314)
>  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
>  at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
>  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
>  at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
>  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
>  at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
>  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
>  at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
>  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
>  at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
>  at 
> org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartialRendering(PartialViewContextImpl.java:539)
>  at 
> org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:415)
>  at 
> org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:60)
>  at 
> javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:85)
>  at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:516)
>  at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:542)
>  at 
> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1891)
>  at 
> javax.faces.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:70)
>  at 
> at.gv.brz.sta.elias.web.jsf.factories.JsfPerformanceLogger.renderView(JsfPerformanceLogger.java:60)
>  at 
> org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:313)
>  at 
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:58)
>  at 
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
>  at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267)
>  ... 55 more



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to