function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DescendantDescendant 

actionStatus not working without reRender on actionSupport

Hello everyone

I would want to ask you, if it's possible, the actionStatus to be triggered without the attribute rerender on actionSupport?

Example:
 

<apex:inputFile id="file_test" value="{!att.Body}" filename="{!att.Name}" rendered="{!showFile}" />
<apex:actionSupport event="onchange" action="{!upload}" status="loadingstatus" rerender="loadingstatus"/>
	<apex:actionStatus id="loadingstatus">
		<apex:facet name="start" >
			 <img src="{!URLFOR($Resource.loading)}" />
  		</apex:facet>
	</apex:actionStatus>
In this case, the acionStatus is working, but if I delete the reRender attribute on actionSupport, then it's not working. I don't want to use reRender, because inputFile is not working in conjunction with rerender attribute :)
logontokartiklogontokartik
You can try putting your actionStatus in top level outputPanel and see if it works. Otherwise you can also try doing it in different way, instead of using the actionSupport try using actionFunction. 
 
<apex:inputFile id="file_test" value="{!att.Body}" filename="{!att.Name}" rendered="{!showFile}" />
<apex:commandButton onclick="uploadAF();" status="loadingstatus"/>
<apex:actionFunction name="uploadAF" action="{!upload}" status="loadingstatus"/>
<apex:actionStatus id="loadingstatus">
		<apex:facet name="start" >
			 <img src="{!URLFOR($Resource.loading)}" />
  		</apex:facet>
</apex:actionStatus>

Let me know if any of this works, otherwise I have a JS soln for inputFile upload with is more reliable