+ Start a Discussion
Edwin VijayEdwin Vijay 

Calling Controller method from extension class

Hello,

 

I am trying to call a controller's method in my extension class and was able to do it with the class.methodname syntax.

 

However, when i try to use the pagereference returned by the method i am unable to save the class with a error message "Unable to process the requested change"

 

Here is how my class looks like, this is the one that works

 

Public void savestep7()
    {
        savemeeting();
        controller.save();
        
    }    

 The one that does not work

 

Public Pagereference savestep7()
    {
        savemeeting();
        Pagereference p = controller.save();
        return p;
    }