I have short question on Primefaces and especially on server-side push capabilities. Due to the given examples on http://www.primefaces.org/showcase/push/index.jsf, I know that it is possible to push a string to the client and force to update some UI-elements.
However, in my case I would need something slightly different:
Is it possible to add and push entire components (Buttons, Textfields etc.) to the client?
The push itself will be triggered by an background thread too. So, basically my workflow looks like that:
User -> starts background (multi) threads Background thread -> generates new component (Button, TextField) -> added to UI / bean -> bean / view updated
There can also be longer time ranges when the UI will be updated with a new element again, therefore a simple ajax request, for example, every 5-10 sec. would cause too much traffic.
This question is also related to this: PrimeFaces push component and How to update the GUI from another thread?