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 7 years, 9 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.

  • [adinserter block='9']
  • 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.