function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mxalix258mxalix258 

button invoking an apex method

So, if I have seperate apex classes that have the same method names and I invoke the method name from the button on a visualforce page, how does it know which apex class to invoke from?

 

In addition, is it possible to have it invoke the method from the wrong class?

 

Thanks!

NTPNTP

Hello,

 

If you are using the apex classes as extensions, then always the 1st extension's method will be invoked when you access from VF page, if in case you have same methods for all the extensions that you use.

 

Thanks