By default <p:commandButton
will queue requests, you should add async
attribute and set it to true :
<p:commandButton async="true" ... />
From Primefaces documentation :
async
Default: FALSE
Type: Boolean
Description: When set to true, ajax requests are not queued.