The usage of apex:param in Visualforce Page

<apex:param> tag is used to pass values from JavaScript to an Apex controller,it can only be used with the folloing parent tags.
  • <apex:actionFunction>
  • <apex:actionSupport>
  • <apex:commandLink>
  • <apex:outputLink>
  • <apex:outputText>
  • <flow:interview>

Here are some small examples of how you can pass a value via apex:param tag in Salesforce.

Use <apex:param> in <apex:actionFunction>

ApexParam.page

ApexParamController.cls

Use <apex:param> in <apex:actionSupport>

ApexParam.page

ApexParamController.cls

Use <apex:param> in <apex:commandLink>

ApexParam.page

ApexParamController.cls

Use <apex:param> in <apex:outputLink>

ApexParam.page

Use <apex:param> in <apex:outputText>

ApexParam.page

Use <apex:param> in <flow:interview>

ApexParam.page

ApexParamController.cls

See more about Set Flow Variable Values from a Visualforce Page

Enjoy It!

Related Post

Batch Apex running mode (parallel and series) and ... In my early post, I’d shared about how to write a Schedulable Batch Apex in Salesforce, and I’ll show you how transactions run in batch Apex and how to maintain their state across these transactions in this post. Batch Apex running mode (parallel / series) As we know, each execution of a batch...
Using Custom Metadata Types and Custom Settings in... Custom Metadata is one of the new features that released at Summer'15 of Salesforce, which is customizable, deployable, packageable, and upgradeable application metadata, and it supports the following custom field types.   • Checkbox   • Date   • Date and Time  ...
Salesforce Mass Editor (Chrome Extension) – ... This's my second Chrome Extension (First one is HERE) this year, named "Salesforce Mass Editor" and it supports for doing the below things : ・Makes any Salesforce list view to be a powerful mass editor. ・Mass insert, mass clone, mass update, mass delete, ALL-IN-ONE. ・Export record data to CSV fi...
Setup an awesome Salesforce developer environment ... Why Sublime Text 3 ? I've been working with Force.com for about 2 years, and always using Eclipse+Force.com IDE(See here, Eclipse Force.com IDE Installation)as my development environment. I don't think it is difficult to use, but it could more friendly. For example: 1. It doesn't support APEX an...