1 Reply Latest reply on Jan 28, 2009 9:38 PM by curiousgeo

    rich:scrollable table problems getting it to render.

    curiousgeo

      Hi,

      I am a newbie to the realm of richfaces and am having some difficulty getting a rich:scrollableTable to render. I am using richfaces-api-3.2.2 jar files., commons-beanutils-1.6.1.jar, and the jsf-facelets.jar. I am getting the following error in my Eclipse console:

      [JBossInjectionProvider] Injection failed on managed bean.
      javax.naming.NameNotFoundException:

      The page appears with everything intact except for the scrollableDataTable. When I change the tags to read "rich:dataTable" it works fine.

      here is my code for the table; it is in an xhtml file:

      <rich:scrollableDataTable value="#{MyBean.my_obj}"
      var="ls"
      binding="#{MyAdminMBean.myTable}"
      frozenColCount="3"
      first="0"
      width="300px"
      height="396px">

      <rich:column width="100px">
      <f:facet name="header" >
      <h:outputText value="My Id"/>
      </f:facet>
      <h:inputText value="#{ls.MyId}"/>
      <f:facet name="footer" >
      <h:outputText value="My Id"/>
      </f:facet>
      </rich:column>
      <rich:column width="100px">
      <f:facet name="header" >
      <h:outputText value="Model"/>
      </f:facet>
      <h:outputText value="#{ls.model}"/>

      <f:facet name="footer" >
      <h:outputText value="Model"/>
      </f:facet>
      </rich:column>
      <rich:column width="100px">
      <f:facet name="header" >
      <h:outputText value="Min Model"/>
      </f:facet>
      <h:outputText value="#{ls.minModel}" />
      <f:facet name="footer" >
      <h:outputText value="Min Model"/>
      </f:facet>
      </rich:column>

      </rich:scrollableDataTable>


      What am I doing wrong? Has anybody ran into this problem? I am binding the table to an HtmlDataTable object in the java code (ie : import org.richfaces.component.html.HtmlDataTable;
      import javax.faces.component.html.HtmlInputText; ) does that make sense? it works for my data table. I just want to add the scroll-bar feature.

      Thanks ^__^
      George