5 Replies Latest reply on Oct 1, 2007 7:36 AM by Maksim Kaszynski

    scrollableDataTable & DataModel doesn't work

    Sven Mueller Newbie


      I have a simple problem with my scrollableDataTable component. As source for my table values i use a method which returns a javax.model.faces.ListDataModel...

      <rich:scrollableDataTable id="articlelist_table" value="#{myArticleListListBean.dataTable}" var="articleList" >
       <f:facet name="header">
       <h:outputText value="Name" />
       <h:outputText value="#{articleList.name}"></h:outputText>

      I always get the following exception:

      javax.el.PropertyNotFoundException: /pages/listmyarticlelists.xhtml @60,50 value="#{articleList.name}": Property 'name' not found on type javax.faces.model.ListDataModel

      The data object (var="articleList") should be of type ArticleListBean but it is ListModelData, that is why there is no property "name"...

      If i use a java.util.List as datasource for my table there is no exception. Is this a bug or what i'm doing wrong? any ideas?

      Thanks in advance,

      ps: i use richfaces 3.1.0