You need to sign in to do that
Don't have an account?
Vigneshwaran Loganathan
apex:inputFile can't be used in conjunction with an action component
Hello,
I have a VisualForce page from which I'm loading some Data , Validating and Saving it to SF. While processing this i need to show Loading icon. I've tried this with the help of some forums but no luck.
When I use rerender, parameters are not passed to controller. Is there a way to overcome this.?
Thanks
Vignesh
I have a VisualForce page from which I'm loading some Data , Validating and Saving it to SF. While processing this i need to show Loading icon. I've tried this with the help of some forums but no luck.
<apex:pageBlockSection id="pbs"> <apex:pageBlockSectionItem > <apex:outputLabel value="Select Object"/> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:selectList size="1" value="{!Objselected}" > <apex:selectOptions value="{!ObjList}"/> </apex:selectList> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:outputLabel value="Select File"/> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:inputFile value="{!contentFile}" filename="{!nameFile}" /> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem ></apex:pageBlockSectionItem> <apex:pageBlockSectionItem id="pbsi"> <apex:actionRegion id="area51" renderRegionOnly="false"> <apex:commandButton action="{!ReadFile}" value="Validate File" id="theButton" disabled="{!vbutton}" status="spinnerStatus" rerender="pbsi" /> <apex:commandButton action="{!SaveFile}" value="Save" id="sButton" disabled="{!sbutton}" status="spinnerStatus" rerender="form" /> </apex:actionRegion> </apex:pageBlockSectionItem> </apex:pageBlockSection>
When I use rerender, parameters are not passed to controller. Is there a way to overcome this.?
Thanks
Vignesh
Below is a code for the same . I have used the standard controller (Account). Hope it helps you.
Visualforce Code :
Feel free to adjust CSS as you like. Works in my developer org.
Screenshot :
Regards,
Akshay
All Answers
Below is a code for the same . I have used the standard controller (Account). Hope it helps you.
Visualforce Code :
Feel free to adjust CSS as you like. Works in my developer org.
Screenshot :
Regards,
Akshay