3 Replies Latest reply on Mar 10, 2011 8:22 AM by traneti

    ExtendedDataTable - sorting problem

    blu3_ros3

      Hello,

       

      I got the extendedDataTable to display the data correctly. However, when I clicked on the arrow next to the column name to sort it, the spinner worked indefinitely and never got completed, e.g. it never came back with the sorted data. This is my code:

       

      ---------------------

      carForm.xhtml

      ---------------------

      <ui:composition ...>

       

           <rich:extendedDataTable id="carTable" rowKeyVar="rkv"

              value="#{carForm.carList}" var="item"
              height="200px" width="340px"

              sortMode="single" selectionMode="single">

       

                       <rich:column id="carMakeCol" width="140" height="10px"
                                  headerClass="dataTableHeader" label="Make" sortable="true"
                                  sortBy="#{item.make}" filterBy="#{item.make}"
                                  filterEvent="onkeyup">
                                  <f:facet name="header">
                                      <h:outputText value="Car Make" />
                                  </f:facet>
                                  <h:outputText value="#{item.make}"></h:outputText>
                        </rich:column>

           </rich:extendedDataTable>

           ...

      </ui:composition>

       

      -------------------

      CarForm.java

      -------------------

       

           List<Car> carList;

       

           public List<Car> getCarList() {
             
              if (carList == null){     
                  carList = carDao.getAll();
              }


              return carList;
          }

       

          //setter (standard)