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
mt0859mt0859 

Page controllers not found/recognised

Collective wisdom please!

 

I have a managed package (say MyPackageName) installed in a dev org which contains a page controller (say MyPackagedPageController) and i am having 2 problems:

 

Firstly:

If i try to use the package's page controller for a VF page, it works fine e.g. controller="MyPackageName.MyPackagedPageController".

However, if i try to include an extension in the VF page that is not found in the package (say MyExtension) e.g. extensions="MyExtension",

when i try click on a button on the VF page that is supposed to refresh the page (an apex function returning a page reference) I get the error:"Apex class 'MyPackageName.MyExtension' does not exist"

 

Secondly:

If i simply try and have a page controller (say MySeparatePageController) for the VF page e.g. controller="MySeparatePageController", I get an error when i just try and save the VF page saying during development simply saying: "Error: Index: 0"

 

Any thoughts please?!

 

M