Visualforce Pageにapex:paramタグの使用方法まとめ

<apex:param> タグは、JavaScriptからApexコントローラにパラメータを送信する場合使われています。
次のコンポーネントの子としてのみ指定できます。
  • <apex:actionFunction>
  • <apex:actionSupport>
  • <apex:commandLink>
  • <apex:outputLink>
  • <apex:outputText>
  • <flow:interview>

下記はSalesforceでapex:paramタグの使用サンプルコードです。

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

flow:interviewの関連ドキュメント: Set Flow Variable Values from a Visualforce Page

Enjoy It!