7 Replies Latest reply on Jun 15, 2009 5:16 AM by fabreax

    ExtendedDataTable problem

    fabreax

      Hello,

      I'm french, sorry for my english ;).

      I tried to use ExtendedDataTable :

      <h:form>
       <rich:extendedDataTable id="membredatatable" value="#{MembreListBean.membresDataModel}" var="membre" width="580px" height="400px" rows="10">
       <rich:column sortable="true" sortBy="#{membre.nom}" filterBy="#{membre.nom}" filterEvent="onkeyup" width="170px" label="Nom">
       <f:facet name="header">
       <h:outputText value="Nom" />
       </f:facet>
       <h:outputText value="#{membre.nom}" />
       </rich:column>
       <rich:column sortable="true" sortBy="#{membre.prenom}" filterBy="#{membre.prenom}" filterEvent="onkeyup" width="170px" label="Nom">
       <f:facet name="header">
       <h:outputText value="Prenom" />
       </f:facet>
       <h:outputText value="#{membre.prenom}" />
       </rich:column>
       </rich:extendedDataTable>
       <rich:datascroller id="richTableScroller" align="left" for="membredatatable" />
       </h:form>


      But the table is empty and I have the loading image.

      If I replce rich:extendedDataTable by rich:dataTable, it works !

      Do you have an idea of solution ?

      Thank you.

        • 1. Re: ExtendedDataTable problem
          fabreax

          If I delete the attribute filterBy, the table works.

          • 2. Re: ExtendedDataTable problem
            ilya_shaikovsky

            try please 3.3.1 snapshot. can't reproduce on current code.

            • 3. Re: ExtendedDataTable problem
              fabreax

              Thank you very much, it was a bug. It works now !

              • 4. Re: ExtendedDataTable problem
                fabreax

                Hello,

                I still use ExtendedDataTable but I have a lot of WARNING in console :

                2009-06-11 21:52:08,609 [WARN-UIComponentBase.java-266)] WARNING: Component j_id38:membredatatable:j_id262 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation! Path to Component: {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /pages/membre/membrelist.xhtml][Class: javax.faces.component.html.HtmlForm,Id: j_id38][Class: org.richfaces.component.html.HtmlExtendedDataTable,Id: membredatatable][Class: org.richfaces.component.html.ContextMenu,Id: j_id70menu][Class: org.richfaces.component.html.HtmlMenuItem,Id: j_id262]}
                ...

                I use the last 3.3.1 richfaces jars.


                I tried the 2009-06-11 release but I have the error :
                2009-06-11 21:45:33,312 [WARN-DisposableBeanAdapter.java-181)] Couldn't find a destroy method named 'close' on bean with name 'dataSource'

                Do you know this problem ?

                Thank you.

                • 5. Re: ExtendedDataTable problem
                  nbelaevski

                  Hi,

                  Both problems don't seem to be related to RF itself.

                  • 6. Re: ExtendedDataTable problem
                    fabreax

                    Hum, thank you. But when I change the tag with <h:dataTable...
                    all is ok ! Do you have an idea ?

                    • 7. Re: ExtendedDataTable problem
                      fabreax

                      Is it possible to be a problem with facelets ?