0 Replies Latest reply on Apr 26, 2011 3:47 PM by John Manko

    subTable and a:support throws ELException: AjaxUpdate component not found for id

    John Manko Newbie

      I added ajax support to a subTable component, and I'm getting the following error.  I'm running Richfaces v3.3.3-final on Glassfish 3.1.  Any idea how to resolve this?  I search the forum and web, and nothing I found offered a solution to fix this.

       

      javax.el.ELException: AjaxUpdate component not found for id: s6

              at org.ajax4jsf.component.

      EventValueExpression.getComponent(EventValueExpression.java:86)
              at org.ajax4jsf.component.AbstractEventValueExpression.getValue(AbstractEventValueExpression.java:98)
              at org.richfaces.component.html.HtmlSubTable.getOnRowClick(HtmlSubTable.java:311)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2338)
              at org.richfaces.renderkit.html.ColgroupRenderer.encodeRowStart(ColgroupRenderer.java:171)
              at org.richfaces.renderkit.html.ColgroupRenderer.doEncodeBegin(ColgroupRenderer.java:61)
              at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)
              at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)
              at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:275)
              at org.richfaces.renderkit.AbstractRowsRenderer.encodeCellChildren(AbstractRowsRenderer.java:288)
              at org.richfaces.renderkit.AbstractTableRenderer.encodeOneRow(AbstractTableRenderer.java:391)
              at org.richfaces.renderkit.AbstractRowsRenderer.process(AbstractRowsRenderer.java:83)
              at org.ajax4jsf.model.SequenceDataModel.walk(SequenceDataModel.java:101)
              at org.ajax4jsf.component.UIDataAdaptorBase.walk(UIDataAdaptorBase.java:1156)
              at org.richfaces.renderkit.AbstractRowsRenderer.encodeRows(AbstractRowsRenderer.java:104)
              at org.richfaces.renderkit.AbstractRowsRenderer.encodeRows(AbstractRowsRenderer.java:88)
              at org.richfaces.renderkit.html.SubTableRenderer.encodeChildren(SubTableRenderer.java:118)
              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
              at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
              at org.richfaces.renderkit.AbstractRowsRenderer.encodeCellChildren(AbstractRowsRenderer.java:288)
              at org.richfaces.renderkit.AbstractTableRenderer.encodeOneRow(AbstractTableRenderer.java:391)
              at org.richfaces.renderkit.AbstractRowsRenderer.process(AbstractRowsRenderer.java:83)
              at org.ajax4jsf.model.SequenceDataModel.walk(SequenceDataModel.java:101)
              at org.ajax4jsf.component.UIDataAdaptorBase.walk(UIDataAdaptorBase.java:1156)
              at org.richfaces.renderkit.AbstractRowsRenderer.encodeRows(AbstractRowsRenderer.java:104)
              at org.richfaces.renderkit.AbstractRowsRenderer.encodeRows(AbstractRowsRenderer.java:88)
              at org.richfaces.renderkit.AbstractTableRenderer.encodeTBody(AbstractTableRenderer.java:90)
              at org.richfaces.renderkit.AbstractTableRenderer.encodeChildren(AbstractTableRenderer.java:97)
              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
              at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
              at com.sun.faces.renderkit.html_basic.TableRenderer.renderRow(TableRenderer.java:380)
              at com.sun.faces.renderkit.html_basic.TableRenderer.encodeChildren(TableRenderer.java:161)
              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
              at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
              at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)
              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
              at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
              at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:432)
              at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:233)
              at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
              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:121)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:410)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
              at com.agois.claims.jsf.filters.AdjusterUserSessionFilter.doFilter(AdjusterUserSessionFilter.java:76)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
              at java.lang.Thread.run(Thread.java:662)

       

       

       

      <h:form >

          <div align="center" >

              <h:panelGroup id="outerTable">

                  <h:dataTable value="#{firstController.covInformationList}" var="cov">

                      <h:column>

                          <r:dataTable id="innerTable" value="" style="width:100%">

                              <f:facet name="header">

                                  <r:columnGroup>

                                      <r:column style="width:250px">

                                          <h:outputText value="#{cov.pl.cov.covDescription}" />

                                      </r:column>

                                      <r:column>

                                          <h:outputText value="Reserve"/>

                                      </r:column>

                                      <r:column>

                                          <h:outputText value="Paid"/>

                                      </r:column>

                                  </r:columnGroup>

                              </f:facet>

                              <f:facet name="footer">

                                  <r:columnGroup id="footerGroup" style="text-align:right;background-color:#6388EB;">

                                      <r:column>

                                          <h:outputText value="Reserves" style="font-size:larger;color:white"/>

                                      </r:column>

                                      <r:column style="text-align:right">

                                          <h:inputText  id="reserveFooter" maxlength="10" size="10" style="font-size:larger;text-align: right">

                                              <f:convertNumber pattern="###,###,##0.00"/>

                                              <a:support id="s1" event="onchange" reRender="outerTable"   action="#{cov.adjustmentLoss}"/>

                                          </h:inputText>

                                      </r:column>

                                      <r:column style="text-align:right">

                                          <h:inputText id="paidFooterSpecial" maxlength="10" size="10" style="font-size:larger;text-align: right"

                                                       value="#{cov.total.lossPaidAndNegate}" >

                                              <f:convertNumber pattern="###,###,##0.00"/>

                                              <a:support id="s2" event="onchange" reRender="outerTable"  action="#{cov.adjust}"/>

                                          </h:inputText>

                                          <h:outputText id="lossPaidFooter" value="#{cov.total.lossPaid}" rendered="#{!firstController.specialUpdate}" style="font-size:larger">

                                              <f:convertNumber pattern="###,###,##0.00"/>

                                          </h:outputText>

                                      </r:column>

                                  </r:columnGroup>

                              </f:facet>

                              <r:columnGroup style="text-align: right">

                                  <r:column style="text-align:right">

                                      <h:outputText value="Current" style="font-size:larger"/>

                                  </r:column>

                                  <r:column style="text-align:right">

                                      <h:outputText value="#{cov.covReservesAndPayments.reserve}" style="font-size:larger">

                                          <f:convertNumber pattern="###,###,##0.00"/>

                                      </h:outputText>

                                  </r:column>

                                  <r:column style="text-align:right">

                                      <h:outputText value="#{cov.covReservesAndPayments.paid}" style="font-size:larger">

                                          <f:convertNumber pattern="###,###,##0.00"/>

                                      </h:outputText>

                                  </r:column>

                              </r:columnGroup>

                              <r:subTable id="covSubTable"  value="#{cov.pending}" var="pending" rowClasses="payment-row" rows="#{cov.tableRowCount}"

                                          onRowMouseOver="document.body.style.cursor='pointer'" onRowMouseOut="document.body.style.cursor='auto'"

                                          rendered="#{coverage.tableRowCount > 0}">

                                  <a:support id="s6" event="onRowClick" action="#{firstController.showDetails}" reRender="detailModal"

                                                                                             oncomplete="Richfaces.showModalPanel('detailModal')"/>

                                  <r:columnGroup style="text-align:right;">

                                      <r:column style="text-align:right">

                                          <h:outputText value="#{pending.payeeLiteralTentative}" style="color:red;"/>

                                      </r:column>

                                      <r:column style="text-align:right">

                                          <h:outputText value="#{pending.paymentAmount}" rendered="#{pending.loss}" style="color:red;">

                                              <f:convertNumber pattern="###,###,##0.00"/>

                                          </h:outputText>

                                      </r:column>

                                      <r:column style="text-align:right">

       

                                      </r:column>

                                  </r:columnGroup>

                              </r:subTable>

                              <r:columnGroup id="AdjustmentGroup" style="text-align: right" >

                                  <r:column style="text-align:right">

                                      <h:outputText value="Adjustments" style="font-size:larger"/>

                                  </r:column>

                                  <r:column style="text-align:right">

                                      <h:inputText id="adjust1" value="#{cov.adjustment.lossReserve}" style="font-size:larger;text-align: right" maxlength="10"

                                                   size="10" disabled="#{!claimsController.activeClaim.updateMode || !cov.authorized}" immediate="true">

                                          <f:convertNumber pattern="###,###,##0.00"/>

                                          <a:support id="s7" event="onchange" reRender="outerTable"  action="#{cov.adjustcovLossReserves}"/>

                                      </h:inputText>

                                  </r:column>

                                  <r:column style="text-align:right">

                                      <h:inputText id="adjust2" value="#{cov.adjustment.lossPaidAndNegate}" style="font-size:larger;text-align: right" maxlength="10" size="10"

                                                   disabled="#{!claimsController.activeClaim.updateMode || !cov.authorized}" rendered="#{firstController.specialUpdate}">

                                          <f:convertNumber pattern="###,###,##0.00"/>

                                          <a:support id="s8" event="onchange" reRender="outerTable" action="#{cov.adjustcovLossReserves}"/>

                                      </h:inputText>

                                  </r:column>

                              </r:columnGroup>

                          </r:dataTable>                 

                          <r:spacer height="25px"></r:spacer>

                      </h:column>

                  </h:dataTable>

                  <r:modalPanel autosized="true" id="paymentDetailModal">

                      <f:facet name="header">

                          <h:panelGroup>

                              <h:outputText value="Payment Detail"/>

                          </h:panelGroup>

                      </f:facet>

                      <f:facet name="controls">

                          <h:panelGroup>

                              <h:outputLabel value="Close X"   id="hidelink"/>

                              <r:componentControl  id="hidelinkControl" for="paymentDetailModal" attachTo="hidelink" operation="hide"  event="onclick" />

                          </h:panelGroup>

                      </f:facet>

                      <jsp:include page="/WEB-INF/include/details.jsp"/>

                  </r:modalPanel>

              </h:panelGroup>

          </div>

      </h:form>