Dynamic dialogs of Primefaces

Dynamic dialogs fetch their content just before they are displayed rather than initial page load. This is a useful feature to reduce page size and speed up page load time.

<p:commandButton value="Show Dialog" onclick="PF('dlg').show();" type="button" />

<p:dialog header="Dialog" widgetVar="dlg" dynamic="true">
<h:outputText value="This content is loaded lazy." />
</p:dialog>

By using dynamic dialog, you don't need to use update events since their content are fresh.

Comments

Popular posts from this blog

Check MySQL query history from command line