8 Replies Latest reply on Jul 18, 2009 7:33 AM by Nick Belaevski

    sortBy not working....

    Jane Public Newbie

      I am getting a resultList from a query. I am using it to sort a rich:column. The sortBy does not seem to work. Any help is appreciated.

      I get an empty list after I click on sort.

      <rich:dataTable
       onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       value='#{bR.resultList}' var='brs' id="br">
      
      <rich:column sortBy="#{brs.brTitle}">
       <f:facet name="header">
       <h:outputText value="#{messages.brTitle}" />
       </f:facet>
       <h:outputLink
       value="#{facesContext.externalContext.requestContextPath}/brDetail/#{brs.brId}">
       <a4j:support event="onclick" actionListener="#{listBr.selectedBrRecv(brs.brId)}"/>
       <h:outputText value="#{brs.brTitle}" styleClass="bold" rendered="#{!listBr.isViewedBrRecv(brs.brId)}"/>
       </rich:column>


      Thanks,

      J