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
David Roberts 4David Roberts 4 

When calling an apex method from a visualforce page, when should the method be of type PageReference and when should we use Void?

When calling an apex method from any of the following
apex;commandbutton
apex:actionSupport
apex:actionFunction
etc

Should it always be a PageReference type rather than a void?