2 Replies Latest reply on Sep 27, 2009 9:35 PM by YY Tsoi

    DataTable sort column (how to prevent user to click more tha

    YY Tsoi Newbie


      I have been using the rich:column as follows to allow sorting of a table column :

      <rich:column sortBy="#{agencyD.name}">
      <f:facet name="header">
      <h:outputText value="Agency" title="Sort by Agency" />
      <h:outputText value="#{agencyD.name}" />

      However, I notice that if the list is a long list, it takes a while for the list to refresh. At the same time, the user may click again to sort before the list gets refreshed. This causes exception. I wonder whether there is a way to prevent this. For example, after the user clicks on the "sort", popup an hourglass to prevent the user to click it again. When the list is sorted and refreshed, remove the hourglass.