1 Reply Latest reply on Dec 6, 2007 9:29 PM by locutusut

    rich:datatable - sort requires 2 clicks instead of 1

    locutusut

      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>
      


      TIA!
      -L