I am able to get sortBy to work on tables where there is only one submit action on the entire page, but when there is more than 1 submit action it does nothing. The sortBy code below does not work:
<h:form> <table class="form" style="width: 100%; background: #f0f0f0"> <tr> <th colspan="6" rowspan="1">Ticket Status:</th> </tr> <tr> <td style="white-space: nowrap; width:130px"> <h:selectOneRadio onclick="this.form.submit();" styleClass="blank" value="#{SupportBacking.ticketStatus}" required="true"> <f:selectItem itemLabel="Open" itemValue="open" /> <f:selectItem itemLabel="Closed" itemValue="closed" /> </h:selectOneRadio> </td> </tr> </table> <p /> <rich:dataTable rendered="#{SupportBacking.render}" styleClass="form" width="100%" value="#{SupportBacking.ticketRS}" var="ticketRSItem"> <rich:column sortBy="#{ticketRSItem.id}" styleClass="blank"> <f:facet name="header"> <h:outputText value="ID" /> </f:facet> <a href="https://support.thing5.com/ttx.cgi?cmd=ticket&key=#{ticketRSItem.accesskey}" class="button img" target="content"><img src="/images/magnify.gif" /></a> <h:outputText value="#{ticketRSItem.id}" styleClass="blank" /> </rich:column> <rich:column styleClass="blank"> <f:facet name="header"> <h:outputText value="Subject" /> </f:facet> <h:outputText value="#{ticketRSItem.subject}" styleClass="blank" /> </rich:column> <rich:column styleClass="blank"> <f:facet name="header"> <h:outputText value="Date opened" /> </f:facet> <h:outputText value="#{ticketRSItem.opened}" styleClass="blank" /> </rich:column> <rich:column styleClass="blank"> <f:facet name="header"> <h:outputText value="Status" /> </f:facet> <h:outputText value="#{ticketRSItem.status}" styleClass="blank" /> </rich:column> </rich:dataTable> </h:form>