My page layout (w/Primefaces) has a west, north and center layout panel which inclues all content. The center layout includes an iframe which each time a menu option is chosen (on the west panel), only the center content is updated (with Ajax).
While the page is rendering/loading I want to display a "loading gif" on one of the other panels. I have used the following code:
xhtml segment
<p:ajaxStatus style="width:32px; height:32px;" id="ajaxStatusPanel">
<f:facet name="start">
<p:graphicImage value="/resources/img/progress.gif" />
</f:facet>
<f:facet name="complete">
<h:outputText value="" />
</f:facet>
</p:ajaxStatus>
But this displays the loader briefly since it completes as soon as the ajax request is over. However the page loading/rendering may take a bit longer. Is there some way to provide a "page rendered" callback?