-
1. Re: a4j:status not working after reRendering
sunkaram Mar 6, 2012 11:13 AM (in response to pchauviaux)Is it not working once you click on the button after reRender?
-
2. Re: a4j:status not working after reRendering
pchauviaux Mar 6, 2012 12:18 PM (in response to sunkaram)Exactly. The scenario is:
- I access the page for the first time
- I click on the button and the status is working correctly
- if I click a second time on the button, it is not working anymore (because there was a reRender - if you remove the reRender, it works correctly but I need it in my application of course)
If I refresh the page, it will work again.
-
3. Re: a4j:status not working after reRendering
sunkaram Mar 6, 2012 1:39 PM (in response to pchauviaux)why do you want to reRender '<a4j:outputPanel' component which always reRenders (all components inside it) by default.
-
4. Re: a4j:status not working after reRendering
pchauviaux Mar 7, 2012 12:17 PM (in response to sunkaram)It was just an example here, but probably not the best, you are right. But it would happen with other components as well.
For example, we also have the problem if we have a <rich:messages> tag on the page, but the problem disappear in this case when we add the attribute "ajaxRendered=false".
-
5. Re: a4j:status not working after reRendering
pchauviaux Mar 16, 2012 8:24 AM (in response to pchauviaux)I finally found a solution to the problem. If I use this code for the a4j:status, using the "onstart" and "onstop" attributes, it works correctly:
<div id="statusMessageId" class="statusMessage" style="display:none;">
<div style="text-align:center;margin-top:400px;"><img src="ajax-loader.gif" /><br/>#{msgs.page_loading}</div>
</div>
<a4j:status onstart="jQuery('.statusMessage').show();" onstop="jQuery('.statusMessage').hide();"/>