DataTable "loading" animation

Post Reply
Posts: 2
Joined: 29 Mar 2018, 10:48

02 May 2018, 11:16

I've got a DataGrid component which has column sorting enabled. I notice that when I click a column header to trigger the sort, I see a nice "spinner" animation in the lower right hand corner of the bottom panel.
Is there a simple way to control when that animation appears?
What I would like to achieve is to have a command button on the page that via my controller bean re-queries my data source and reloads my datagrid. It would be great if I could show the animation whilst my grid reloads.

Please excuse my potential ignorance but just getting to grips with JSF and Primefaces.

Posts: 3762
Joined: 29 Jun 2013, 12:38

07 May 2018, 07:37

We use AjaxStatus component to display animation on ajax request. You can see it in template.xhtml. Also, please see "AjaxStatus" section; ... de_6_2.pdf

Maybe, you can use BlockUI component with Custom content for your issue; ... ckUI.xhtml

Post Reply

Return to “Verona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests