Dialog - Dynamic

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.

Dynamic Dialog

Source

	
<p:commandButton id="basic" value="Show Dialog" onclick="dlg.show();" type="button" />
							
<p:dialog id="dialog" header="Dynamic Dialog" widgetVar="dlg" dynamic="true">
    <h:outputText value="This content is loaded lazy." />
</p:dialog>