I am new to JSF, so I donβt know if the behavior I encounter is normal.
I have this code:
<p:selectBooleanCheckbox id="locationChoice1" value="#{login.locationChoice1}"> <p:ajax listener="#{login.chooseLocationType1}" update="locationChoice1 locationChoice2 positionChoice" /> <p:ajax listener="#{login.retrieveGalaxies}" update="test" /> </p:selectBooleanCheckbox>
The my login.retrieveGalaxies function has a sleep(8000) function call to simulate a delay. I expect my components locationChoice1 , locationChoice2 and positionChoice be updated in 1 or 2 seconds, and my test component will be updated in 8 seconds, but all will be updated in 8 seconds.
Is this the right behavior?
I tried to play with the async parameter, but it did not change the result.
ajax jsf primefaces
Olivier J.
source share