This content has been marked as final.
Show 2 replies
-
2. Re: DataTable sort column (how to prevent user to click more
yytsoi Sep 27, 2009 9:35 PM (in response to yytsoi)Thank you so much. It works.
Y.Y.
Hi,
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" />
</f:facet>
<h:outputText value="#{agencyD.name}" />
</rich:column>
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.
Y.Y.
Thank you so much. It works.
Y.Y.