0

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 :)

1
  • The actionstatus tag is designed to show a status message while re-rendering. It will not work without a rerender. Nov 27, 2015 at 2:38

1 Answer 1

2

In this situation I've used the following as a workaround....

<apex:inputFile />
<apex:commandButton action="{!upload}" value="Upload" onclick="document.getElementById('LoaderImg').style.display = 'show';"/>
<img id="LoaderImg" src="{!URLFOR($Resource.loading)}" style="display:none;"/>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .