0 Replies Latest reply on Apr 2, 2013 9:15 AM by Dmitry Mozheyko

    How to block UI while extendeddatatable sort proceeds?

    Dmitry Mozheyko Newbie

      Hi all.

      I use RF 4.3.1 with mojarra 2.1.19.

       

      I use extendeddatatable:

       

      <rich:extendedDataTable keepSaved="true" 
                                          value="#{listBean.dataModel}"
                                          var="row" 
                                          rows="#{listBean.rows}" 
                                          id="listTable"
                                          selectionMode="multiple"
                                          selection="#{listBean.selection}"
                                          sortPriority="#{listBean.sortPriorities}"
                                          sortMode="single"
                                          frozenColumns="#{listBean.frozenColumns}"
                                          style="height: auto; width: auto;">
                      <a4j:ajax event="selectionchange" render="selCount, processButton" onbegin="#{rich:component('blockUI')}.show();" oncomplete="#{rich:component('blockUI')}.hide();" />
                      <rich:column sortBy="#{row.name}" >
      
                              <f:facet name="header">
      
      
                                  <h:outputText value="Name" />
      
      
                              </f:facet>
      
      
                              <h:outputText value="#{row.name}" />
      
      
                       </rich:column>
      
      ...
      
      
      

       

      dataModel contains many rows and build in sorting continues several seconds.

       

      How i can block UI while this operation runs?

       

      Richfaces have such as:

       

       

      <a4j:ajax event="sort" ... /> for <rich:extendeddatatable>
      

       

      ?