Salesforce apex:commandButtonのapex:param
Salesforce apex:commandButtonのapex:param
例えば、
Page
<apex:commandButton value="commandButtonから実行" action="{!doClick}" rerender="formId">
<apex:param name="parameter" value="commandButtonから実行"/>
</apex:commandButton>
Controller
public void doClick() {
String parameter = System.currentPageReference().getParameters().get('parameter');
}
参考URL
上記はうまくいかない。
SFDC:<apex:commandButton>バグぽい。
参考URL
Passing Parameters with Commandbutton - Salesforce Developer Community