I have the following button and panel in primefaces:
<p:commandButton value="Submit"
ajax="true" actionListener="#{myBean.search}" update="resultPanel" oncomplete="panelwv.show();">
</p:commandButton>
<p:panel widgetVar="panelwv" visible="false" closable="true"
toggleable="true" id="resultPanel">
I want while the myBean.search executes, an animation appears on the screen.
Any help?
Thanks!!
You can use the Primefaces AJAX – Status – Declarative
also take a look at the other examples Primefaces AJAX – Status
Just place some nice image in the
h:graphicImageYou can generate one using the Ajaxload – Ajax loading gif generator