Is it possible to call a Javascript function after an update in Primefaces version before 6?

Viewed 108

I noticed that, even with oncomplete, on my old version of PrimeFaces, the JS is called immediately, without waiting the re-rendering of the page or of a component. As a workaround, I use he ugly setTimeout.

Is there some other trick to circumvent this old behavior? PrimeFaces has some JS extension for this?

I'm using PrimeFaces 3.4.1 with Mojarra 2.1.7

1 Answers
Related