There is a mismatch between JSF page definition, hidden containers and rich widgets that need dimension calculation. If you are a fellow PrimeFaces user, it is likely that you’ve faced with issues like this before, consider the following cases;
<p:dialog> <p:editor /> </p:dialog>
That will not work because editor renders itself in DOM on page load so needs dimension information, which jQuery cannot provide as dialog is hidden, our dirty workaround was using a lazy editor and initialize it when dialog is shown.
<p:dialog onShow="edt.init()"> <p:editor widgetVar="edt"/> </p:dialog>
The problem is, this is not a generic solution as PrimeFaces has various components that have hidden containers like dialog, inactive tabs of tabview, accordion, wizard and also several components that need dimensions on initialization like editor, schedule, charts and more.
We are glad to share that upcoming PrimeFaces 3.0.M4 has a generic solution for this, so on page you don’t need to deal with these as PrimeFaces handles these under the hood for you.
M4 and RC1 in general focuses on maintenance to bring you a stable and easier to use PrimeFaces.