0 Replies Latest reply on Feb 14, 2008 7:09 PM by Bill Evans

    RichFaces 3.1.4:  scrollableDataTable with binding takes Ill

    Bill Evans Newbie

      I am trying to dynamically create a ScrollableDataTable in Java.

      In my HTML:

      <rich:scrollableDataTable id="userListing" binding="#{adminUsers.table}"/>

      My Java bean method:

      public HtmlScrollableDataTable getTable() {
      return new org.richfaces.component.html.HtmlScrollableDataTable();
      }


      My bean gets called ok, but then when JSF tries to render I get:

      java.lang.IllegalArgumentException: Component mainForm:userListing not instance of org.richfaces.component.UIScrollableDataTable
      at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:94)
      at org.richfaces.renderkit.html.ScrollableDataTableBaseRenderer.encodeBegin(ScrollableDataTableBaseRenderer.java:737)
      ......


      What am I doing wrong?