2 Replies Latest reply on Jan 15, 2010 3:57 AM by radu radu

    rich:extendedDataTable sort columns issue

    radu radu Novice

      Hi !

       

      I am using a rich:extendedDataTable , and now i am trying to sort two of its columns.
      So when it is first rendered those two columns should be sorted, one asc and one dsc, the
      behavior is that only one column of those two is sorted... depending which is first in table.

       

      Also those two columns could not be both of them sorted at the same time... even if i click on
      their header...

       

      This is  part of my code:

       

        <rich:extendedDataTable sortMode="single" selectionMode="single" value="#{myBean.values}" var="iter" id="myTable" ...>
         <rich:column  sortOrder="DESCENDING" sortBy="#{iter.val1}">
           <h:outputText value="#{iter.val1}">
            <f:convertNumber type="number" />
           </h:outputText>
         </rich:column>
          ...  // more columns
         <rich:column  sortOrder="ASCENDING" sortBy="#{iter.val2}">
           <h:outputText value="#{iter.val2}">
            <f:convertNumber type="number" />
           </h:outputText>
         </rich:column>
        </rich:extendedDataTable>

      Please if you have an idea about this behavior give me a hand...

       

      Thanks,

        Radu