Activity Forums Salesforce® Discussions What is the difference between actionFunction, actionSupport, actionRegion in Salesforce?

  • Anjali

    Member
    August 1, 2018 at 7:49 am

    Hi Prachi,

    <apex:actionFunction>
    This component provides support for invoking controller action methods directly from JavaScript code using an AJAX request and we can use action function from different places on visual force page.

    <apex:actionSupport>
    <apex:actionSupport/> Invoke the controller method using AJAX when event occurs on page like onMouseOver, onClick, etc. and we can use action support for particular single apex component.

    <apex:actionRegion>
    An area of a Visualforce page that demarcates which components should be processed by the Force.com server when an AJAX request is made. Only the components in the body of the <apex:actionRegion> are processed by the server, thereby increasing the performance of the page

  • Aman

    Member
    September 29, 2018 at 4:19 pm

    Hi,

    Action function can call the controller method from javascript.

    Action support adds AJAX support to another visual force component and then call the controller method.

    Action region is one of the most important tags which helps in increasing page performance. So we should try to make maximum use of action region in visual force page.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos