Reputation: 381
I used the same one as in primefaces.org which is: http://www.primefaces.org/showcase/ui/ajaxStatusScript.jsf
<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>
<p:dialog modal="true" widgetVar="statusDialog" header="Status"
draggable="false" closable="false">
<p:graphicImage value="/design/ajaxloadingbar.gif" />
</p:dialog>
my page never shows the content if this piece of code exists. When I inspect with firebug, the js error is Uncaught ReferenceError: statusDialog is not defined.
Upvotes: 1
Views: 4272
Reputation: 751
What Primefaces´ version are you using?
Primefaces from 4 to 5 changed the way to access widget components:
Widgets must be referenced via "PF". e.g. PF('widgetVarName').show() instead of widgetVarName.show();
https://code.google.com/p/primefaces/wiki/MigrationGuide
Upvotes: 8