Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8516423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:25:25+00:00 2026-06-11T05:25:25+00:00

I am trying to create a datatable that displays a blockUI whenever it is

  • 0

I am trying to create a datatable that displays a blockUI whenever it is busy, and I have been mostly successful. It now grays out and shows “Loading…” whenever I click either of two commandButtons, sort the datatable by clicking on a header, or page through the datatable. You can see the code for it below.

The problem is that after I have used one of the commandButtons (which runs an ajax update on the blocked element), subsequent actions do not trigger the blockUI (until I refresh the page). For example:

  • Load page
  • Click a datatable header – blockUI appears until table is finished sorting
  • Click one of the datatable page navigation buttons – blockUI appears until the page is loaded
  • Click one of the commandButtons – blockUI appears until the button’s actionListener has finished
  • Click a datatable header – table sorts, but blockUI does not appear.
  • Click one of the datatable page navigation buttons – page loads, but blockUI does not appear
  • Click one of the commandButtons – actionListener runs and table updates, but blockUI does not appear
  • Reload the page – everything works properly again

Changing the commandButtons’ update=”” attribute to ajax=”false” causes the sorting/paging to always display the blockUI, but the commandButtons to never display the blockUI.

Any ideas?

<div class="buttonDiv">
    <p:commandButton ... update="resultsPanel" id="submitButton" ... />
    ...
    <p:commandButton ... update="resultsPanel" id="resetScenarioButton" ... />
</div>
<p:panel header="Results Grid" id="resultsPanel">
    ...
    <p:dataTable ... id="VAResults" ... >
        ...
    </p:dataTable>
    ....
</p:panel>
<p:blockUI block="resultsPanel" trigger="submitButton, resetScenarioButton, VAResults">
    Loading...
</p:blockUI>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:25:27+00:00Added an answer on June 11, 2026 at 5:25 am

    The trigger attribute binds jQuery listeners on the specified elements. However if you update an element the binding gets lost. I don’t know if it works, but you could try moving the <p:blockUI inside the resultsPanel. I suspect that when you update the panel the blockUI gets updated too and thus re-binding the listener to the data table.

    <p:panel header="Results Grid" id="resultsPanel">
        ...
        <p:dataTable ... id="VAResults" ... >
            ...
        </p:dataTable>
        ....
        <p:blockUI block="resultsPanel" trigger="submitButton, resetScenarioButton, VAResults">
        Loading...
    </p:blockUI>
    </p:panel>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a datatable and trying to insert that datatable through SqlBulkCopy but
I am trying to create a method that takes a DataTable or a DataRowCollection
I have been trying to create a link in each row of a datable
I have been trying to use OleDbDataAdapter to update a DataTable but got confused
2 Hi! I am trying to create stored procedure that gone return varchar value,
I am trying to databind a DataTable to an accordion and I have found
I'm trying to create an ASP.NET/C# page that allows the user to edit a
I am trying to create a csv file of some data. I have wrote
I'm trying to create some cascading drop downs. I have my States loading via
I have been running into OutOfMemory Exceptions while trying to load an 800MB text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.