0 Replies Latest reply on Sep 27, 2008 1:35 PM by ipazmino

    Sorting column problem

    ipazmino

      Hi,

      I have a list I need to sort, but the headers' attributes in the <rich:column> tag don't seam to work.

      the table is declared like this

      <rich:dataTable value="#{inboxMessages}" var="inboxMsg" rows="5">


      and the columns I want to be sorted by are

      <rich:column id="dateCol" sortable="true" sortBy="#{inboxMsg.datetime}" sortOrder="DESCENDING">
       <f:facet name="header">
       <h:outputText value="Date"/>
       </f:facet>
       <h:outputText value="#{inboxMsg.datetime}" />
      </rich:column>
      <rich:column id="subjectCol" sortBy="#{inboxMsg.title}">
       <f:facet name="header">
       <h:outputText value="Subject" />
       </f:facet>
       <h:outputText value="#{inboxMsg.title}" />
      </rich:column>


      y also added to the rich:dataTable tag the attributes
      sortMode="multi" sortPriority="dateCol,subjectCol"

      but it doesn't work either.

      When the view is rendered none of both headers display controls or allow me to order the columns. Why? Have I missed something?

      Thanks in advance.