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

Visualforce page not checking for method in extensions

<apex:page standardcontroller="Mycustomobject" extensions="dosomework">
<apex:commandbutton action="{!dosomework}" value="GO!"/>

This is my Skeltal Code. when i try to save it I am getting error like - Can not find Mycustomobject.stdcontollerdosomework
dosomework is in extension.

Why the code is checking for method in standard controller and not in extension?
Ayush TripathiAyush Tripathi
Hi have you created a class "dosomework"  and if yes create a constructor inside it
public doSomework(ApexPages.StandardController controller)
Make sure you have a method also which you have mentioned in the action.
Please mark this as best answer if it solves your query
Hi My extension is defined, and i have controller also
Ayush TripathiAyush Tripathi
Have you made a constructor in that extension with the above syntex?