function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chatter App08887189372361651Chatter App08887189372361651 

Parameter always showing as Null in controller

I am trying to pass a value from a VF form into my controller, however the parameter is always staying as Null.
VF Code:
<apex:repeat value="{!ProdCVSiteInfo}" var="p">     
        <apex:commandButton value="Add" action="{!addProd}" style="vertical-align: top; padding:3px;">
            <apex:param name="selectedProducts" value="{!p.Id}" assignTo="{!selectedProducts}"/>  
        </apex:commandButton>
</apex:repeat>

Controller
public String selectedProducts {
get;
set {selectedProducts = value;}
}

Where am I going wrong as i have done this previously and the code looks the same, can't seem to see the error.


Best Answer chosen by Chatter App08887189372361651
Norm Sherman SFNorm Sherman SF
This help? https://success.salesforce.com/ideaView?id=08730000000YcV8AAK