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
Charles McDowellCharles McDowell 

apex:param values not updating

I am new to Salesforce. I am trying to get detail to show when I click the link. I check to see if parameters are passed and  no values are updated can someone tell me what is wrong.  thanks

<apex:page standardController="Account" recordSetVar="acts" sidebar="False" >
   <apex:form >
        <apex:pageBlock title="Accounts" > 
            <apex:pageBlockSection >
                <apex:pageBlockTable value="{!acts}" var="a">
                    <apex:column >
                        <apex:commandLink value="{!a.name}"  reRender="relView"/>
                        <apex:param name="AccountID" value="{!a.ID}"/>
                        <apex:param name="Name" value="{!a.Name}"/>
                    </apex:column>
                    <apex:column value="{!a.ID}" />
                    <apex:column value="{!a.Industry}" />
                </apex:pageBlockTable>
                
       
    
                <apex:pageBlock title="Account Detail" ID="relView">
                    {!$CurrentPage.parameters.AccountID}<br/>
                   {!$CurrentPage.parameters.Name}
                </apex:pageBlock>
                     
            </apex:pageBlockSection>
           </apex:pageBlock> 
       
    </apex:form> 
</apex:page>
Nikhil Verma 6Nikhil Verma 6
Instead of closing the commandLink tag on the same line, try closing the tag after the apex:param tags. Your code should look like:
                  <apex:commandLink value="{!a.name}"  reRender="relView">
                        <apex:param name="AccountID" value="{!a.ID}"/>
                        <apex:param name="Name" value="{!a.Name}"/>
                  </apex:commandLink>
Hope this helps.
Charles McDowellCharles McDowell
It worked Thank you so much.