p:remoteCommand async autoRun runs calls 6 by 6

262 Views Asked by At

We have a simple JSF + PrimeFaces 6.1 project which is for now a POC to solve a problem that we have in our actual project, which is basically the need to load JSF/PF components concurrently. I was able to implement it adapting the solution from this answer here from Stackoverflow: JSF lazy loading component value

But the "problem"/question now is: why are the async remoteCommand calls invoked in groups of 6 and the following 6 are queued and so on? Is it a browser thing, jQuery configuration/limitation or an actual p:remoteCommand limitation? I wasn't able to find a property to set unlimited or 10 or 12 for instance.

Obs: I have tried both with and without the autoRun and invoked them by their names, but the result was the same. 6 by 6.

Chrome Network Timeline below: enter image description here

Code fragment below:

<p:remoteCommand async="true" id="rcLoadWidget" 
   actionListener="#{dashboardController.loadWidget}"
   process="panelGroup" autoRun="true"
   partialSubmit="true" update="panelWidget @form:btSave" />

Could you please advise? :)

0

There are 0 best solutions below