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

    scrollableDataTable & DataModel doesn't work

    skanky78

      Hi,

      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" >
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Name" />
       </f:facet>
       <h:outputText value="#{articleList.name}"></h:outputText>
       </rich:column>
      </rich:scrollableDataTable>
      ...
      


      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,
      sven

      ps: i use richfaces 3.1.0

        • 1. Re: scrollableDataTable & DataModel doesn't work

          I also have this problem...

          • 2. Re: scrollableDataTable & DataModel doesn't work

            Hi skanky78...

            Do you resolved this problem?

            Thank's

            • 3. Re: scrollableDataTable & DataModel doesn't work
              skanky78

               

              "*Ninho*" wrote:
              Hi skanky78...

              Do you resolved this problem?

              Thank's


              sadly, i didn't get it working! :( did anyone else out there?

              • 4. Re: scrollableDataTable & DataModel doesn't work

                 

                "skanky78" wrote:
                "*Ninho*" wrote:
                Hi skanky78...

                Do you resolved this problem?

                Thank's


                sadly, i didn't get it working! :( did anyone else out there?


                I have the same problem with Calendar too.

                
                javax.faces.el.PropertyNotFoundException: /tags/calendar.xhtml @59,41 value="#{value}": myPage.xhtml @25,37 value="#{bean.dateBegin}": Bean: com.myapp.MyBean, property: dateBegin
                 at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)
                 at javax.faces.component.UIOutput.getValue(UIOutput.java:80)
                 at org.richfaces.renderkit.CalendarRendererBase.getSelectedDate(CalendarRendererBase.java:369)
                 at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:218)
                 at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:427)
                 at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
                 at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
                 at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
                 at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                 at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                 at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                


                • 5. Re: scrollableDataTable & DataModel doesn't work
                  maksimkaszynski

                  Looks like we forgot to handle user DataModel ))

                  http://jira.jboss.com/jira/browse/RF-1043