I'm using primefaces and have a problem executing JavaScript at the end of an ajax call. I add some action to the RequestContext, and it is executed twice!
RequestContext.getCurrentInstance().execute("alert('I'm here!')");
It is also embedded twice in the XML which I get back from the server - two times the same component and same node.
Primefaces Version is 5.3.10
Any ideas what is going wrong here? Thanks.