hi there,
i have a login page for my webapp. after clicking the submit button, there is a "loading" modal panel. it gets removed by the oncomplete attribute of the commandButton.
some code:
<a4j:commandButton id="loginButton" style="width:100%;"
value="#{res.login_confirm}" reRender="errMsg"
action="#{authBean.login}"
oncomplete="Richfaces.hideModalPanel('loadModalPanelLogin');">
<rich:componentControl for="loadModalPanelLogin"
attachTo="loginButton" operation="show" event="onclick" />
</a4j:commandButton>