It works with PrimeFaces <p:button …/> (full page GET request).
It works with <p:commandButton …/> (AJAX request per default)
It DOESN’T WORK with <p:commandButton ajax=”false” …/> (full page POST request).
In the third case I can see added windowId with every full page POST request. E.g. after 3 requests: