0

I want delete a row form datatable using ajax call in JSF. It takes 30 seconds to delete a row. I want to block user activity using process image, or process bar before ajax call complete.

i have put sample code for activation you can refer this as a delete.

<p:commandLink id="activateId" rendered="#{var.status.statusId eq 1}"
       value=" Activate " action="#{countryBean.ChangeCountryAdminStatus(var.userCountryPK.user.eid,true)}" update="@form" process="@this" >
    </p:commandLink>
Surya
  • 416
  • 4
  • 7
  • 26

1 Answers1

0

Use the onclick attribute to change the class on some element. Then through your css display the process indicator when the class is present. Don't forget to remove the class once the ajax call returned (either successfuly or faulty).

Valentin Jacquemin
  • 2,215
  • 1
  • 19
  • 33