Activity Forums Salesforce® Discussions If page is having multiple extenssions and if two extenssions have methods of same name.

  • If page is having multiple extenssions and if two extenssions have methods of same name.

    Posted by Avnish Yadav on August 31, 2018 at 11:22 am

    If page is having multiple extenssions and if two extenssions have methods of same name.     Then which method out of these two will be called upon calling from vf page ?

    shariq replied 5 years, 6 months ago 3 Members · 2 Replies
  • 2 Replies
  • Parul

    Member
    August 31, 2018 at 12:11 pm

    Hi Avnish,

    The first extension takes precedence over the second extension, so the first method  of first extension will be called first and then second one.

    Thanks.

  • shariq

    Member
    September 12, 2018 at 12:31 am

    Hi Avinish,

    If extensions have same method name, then the extension written on the left or first will have higher rank over the next one.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos