Nov 7, 2018

How to fix component not rendered with ajax in Primefaces?

There is an issue that the component can't be updated if it doesn't exist in DOM.

Workaround:

<h:panelGroup id="toUpdate">
  Your component here with rendered="your-condition"
</h:panelGroup>

<p:commandButton update="toUpdate"/>