+ Start a Discussion

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?






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.