9 Replies Latest reply on Jul 6, 2009 5:48 AM by Deb Dutta

    could not find dataTable with id !!!!

    Deb Dutta Novice

      In my application i am using datascrollar and rich:extendeddatatable,

      I ma getting one exception while loading the page,

      Caused by: java.lang.IllegalArgumentException: could not find dataTable with id 'GR_COD_7220'
      at org.richfaces.component.UIDatascroller.getDataTable(UIDatascroller.java:239)


      My UIcode is

      
      <a4j:outputPanel ajaxRendered="true">
       <rich:datascroller id="tableScrollarGR_COD_7220"
       reRender="pagingPanelGR_COD_7220,pagesTextGR_COD_7220,tableScrollarGR_COD_7220" align="right"
       for="GR_COD_7220" pageIndexVar="pageIndex" pagesVar="pages"
       page="#{qpianz19.pagesvalueGR_COD_7220}">
       <f:facet name="pages">
       <h:outputText id="textPagesGR_COD_7220" value="#{pageIndex} / #{pages}"
       style="font-size: 8pt;font-family: Arial">
       </h:outputText>
       </f:facet>
       </rich:datascroller>
      </a4j:outputPanel>
      
      <a4j:region>
      <rich:extendedDataTable id="GR_COD_7220" binding="#{qpianz19.GR_COD_7220}" value="#{qpianz19.GR_COD_7220_List}" .....>
      
      .
      .
      .
       </rich:extendedDataTable>
      </a4j:region>
      
      
      


      why this exception is showing?? i need to put the datascrollar before the grid..it is the requirement.

      please help..



        • 1. Re: could not find dataTable with id !!!!
          Nick Belaevski Master

          Hi,

          This should work, please post more info: RF version and exception stack trace.

          • 2. Re: could not find dataTable with id !!!!
            Deb Dutta Novice

            Here is the full track trace..


            EVERE: Servlet.service() for servlet Faces Servlet threw exception
            java.lang.IllegalArgumentException: could not find dataTable with id 'GR_COD_7220'
             at org.richfaces.component.UIDatascroller.getDataTable(UIDatascroller.java:239)
             at org.richfaces.component.UIDatascroller.getPageCount(UIDatascroller.java:358)
             at org.richfaces.renderkit.html.DatascrollerTemplate.doEncodeEnd(DatascrollerTemplate.java:205)
             at org.richfaces.renderkit.html.DatascrollerTemplate.doEncodeEnd(DatascrollerTemplate.java:682)
             at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:134)
             at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
             at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:281)
             at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
             at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:78)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
             at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
             at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
             at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:78)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
             at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
             at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
             at org.richfaces.renderkit.TabRendererBase.encodeChildren(TabRendererBase.java:113)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
             at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
             at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
             at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:285)
             at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:280)
             at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
             at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
             at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
             at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
             at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
             at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571)
             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:106)
             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
             at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
             at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
             at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
             at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
             at java.lang.Thread.run(Thread.java:619)
            


            My richfaces version 3.3.1

            • 4. Re: could not find dataTable with id !!!!
              Ilya Shaikovsky Master

              works fine for me without any difference before or after the table.
              qpianz19 - scope?

              • 5. Re: could not find dataTable with id !!!!
                Deb Dutta Novice

                scope is "session"

                • 6. Re: could not find dataTable with id !!!!
                  Ilya Shaikovsky Master

                  not allowed for bindings in JSF. should be request. why you need it at all?

                  • 7. Re: could not find dataTable with id !!!!
                    Deb Dutta Novice

                    the manage bean qpianz19 should be in session scope , as this is the requirement as my my application. actually this is page where i am editing data, saving data , reading from database and showing data in grid by nex-previous opening to go next record...like this, and in this bean i am setting some value and accessing that from other bean...

                    • 8. Re: could not find dataTable with id !!!!
                      Ilya Shaikovsky Master

                      you could use any scope for your data objects. But view objects should be request scoped. move the binding into request scoped object and just inject it in session scoped one.

                      • 9. Re: could not find dataTable with id !!!!
                        Deb Dutta Novice

                        can you please be a bit more descriptive....
                        data objects..and view objects binding scope setting just with a sample example...

                        thanks for help