Visualforce : apex:param value=“”

176    Asked by Aalapprabhakaran in Salesforce , Asked on Apr 16, 2021

In almost all the examples where apex: param is used in conjunction with apex: action function I have seen the value attribute of apex: param is "".Can someone explain the logic behind this? What is Apex Param?  I am not clear about the usage of the apex: param tag. My understanding is apex: param sets the controller variable mentioned in assign to with the value mentioned in the value attribute.If my understanding is right then why value attribute is always set to "in apex: param tag. Can someone help?

Answered by Andrew Jenkins

tag is used to pass values from JavaScript to an Apex controller,it can only be used with the folloing parent tags. apex:actionFunction will almost always have parameters assign the attribute value="", because the parameter will be provided by the JavaScript call. However, value is a required attribute for apex:param, so you need to provide something, but the value itself is meaningless because the calling script will provide the appropriate value.



Your Answer

Interviews

Parent Categories