Passing Parameters from Visualforce Page to Apex Method
To pass parameters from a Visualforce page to an Apex method, you can use the <apex:param> tag within the component that invokes the method. To pass parameters from a Visualforce page to an Apex method, you can use the <apex:param> tag. This tag needs to be included within an <apex:actionFunction>, <apex:commandButton>, or <apex:commandLink> tag. The <apex:param> tag works by specifying a name-value pair, which is then sent to the server when the parent tag triggers an action. Method 1 Visualforce Page <apex:page standardController="Account" Controller="AccountController"> <apex:outputPanel id="main"> <apex:form> <apex:pageBlock title="Account Detail"> <apex:pageBlockSection title="Account"> <apex:outputField value="{!Account.Name}"/> <apex:outputField value="{!Account.Description}"/> ...