I'm finding that the sort column feature in rich:datatable is requiring 2 distinct clicks (not dbl click), in order to sort that column in the datatable. However, in the demo, that is not the case.
Do you know what might be causing this for my application?
Here's what I have:
<a4j:outputPanel id="searchRequestsDataTableAjaxContainer"> <rich:dataTable id="searchRequestsDataTable" var="rowObject" width="100%" height="100%" value="#{SearchRequestController.searchResultList}" rows="#{SearchRequestController.rowsPerPage}" rowClasses="odd,even"> <f:facet name="header"> <rich:columnGroup> <rich:column rowspan="2"> <h:commandLink action="#{SearchRequestController.sortRequests}" reRender="searchRequestsDataTable,searchRequestsDataScroller" immediate="true"> <h:outputText value="#{SSBundle['ui.tabs.myrequest.request.number']}" /> <a4j:support event="onclick" /> <f:param name="sortColumn" value="#{SSBundle['ui.request.sort.request.number']}" /> <t:panelGroup rendered="#{SearchRequestController.sortColumn == SSBundle['ui.request.sort.request.number']}"> <h:graphicImage rendered="#{SearchRequestController.sortAscending}" url="/resources/images/asc.gif" /> <h:graphicImage rendered="#{!SearchRequestController.sortAscending}" url="/resources/images/desc.gif" /> </t:panelGroup> </h:commandLink> </rich:column>
I'm starting to suspect that the h:commandLink might be causing this issue, but we do this because we want to go back to the database and sort against all the records, not just the ones on that page.
Any help would be appreciated...TIA!