Invoking Apex from a Custom Button using a Visualforce Page

This post is about creating a custom button to be placed in a detail page using Visualforce page instead of an S-control (deprecated). I will be using Opportunity object for this example. The Controller: public class VFController { private final ApexPages.StandardController theController; public List listOpps = new List(); public VFController(ApexPages.StandardController stdController) { theController = stdController; …