I'm trying desperately to have a sorted datatable, with selfSorted attribute setted to false, so without sort icons.
For the moment, the comportment of the table is as expected, but the icons stay rendered.
Here's a snippet of my code:
<rich:dataTable var="msearching" value="#{mCandidate.searchings}" id="repeat" rows="10" rowClasses="ligne_OFF-1, ligne_OFF-2" onRowMouseOver="this.style.backgroundColor='#F8F06B';" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.rowBackgroundColor}';" styleClass="table-recherches"> <rich:column styleClass="recherche" headerClass="enteteTable" selfSorted="false" sortBy="#{msearching.creationTime}" sortOrder="DESCENDING"> <f:facet name="header"> <div class="rechercheFloatHead"> Parametres de la recherche </div> </f:facet> <h:outputText value="#{msearching.toString()}" /> </rich:column> <rich:column styleClass="linkrecherche" headerClass="enteteTable"> <f:facet name="header"> <div class="linkrechercheHead"></div> </f:facet> <h:commandLink action="#{searchEngineBean.searchFromSavedQuery()}" value="Lancer la recherche" id="mSearching" > <f:setPropertyActionListener target="#{searchEngineBean.currentSearching}" value="#{msearching}"/> </h:commandLink> </rich:column> </rich:dataTable>
The arrow icons show up when you set the sortOrder to anything other than UNSORTED. I think this is by design. Can you sort your data in the bean and avoid using the sortOrder attribute? Alternately and maybe easier, you can set the sortIconAscending and sortIconDescending attributes to a transparent 1-pixel .gif.