2 Replies Latest reply on Oct 23, 2007 6:58 AM by Blondel Michaël

    datatable scroller

    Blondel Michaël Newbie

      I try to use the datatable scroller but I have this error :

      avax.servlet.ServletException: could not find dataTable with id 'dataList'
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
      


      My example :

      <h:form>
      
      <rich:datascroller align="left" for="dataList" maxPages="20" />
      <rich:spacer height="30" />
      
      <rich:dataTable width="500" id="dataList" rows="10" columnClasses="col"
       rowKeyVar="rowKey" value="#{exaProductBean.products}" var="product">
      
       <rich:column id="text">
       <f:facet name="header">
       <h:outputText styleClass="headerText" value="Name" />
       </f:facet>
       <h:outputText value="#{product.productName}" />
       </rich:column>
      
       <rich:column id="label">
       <f:facet name="header">
       <h:outputText styleClass="headerText" value="Label" />
       </f:facet>
       <h:outputText value="#{product.productType}" />
       </rich:column>
       </rich:dataTable>
      
      </h:form>


      I don't know why it doesn't work. Thanks for your help.