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
Krishnan MishraKrishnan Mishra 

Why I am getting value for the param assignTo?

I am iterating  a map using repeat on a vf page. I want to send the selected folder's id in the apex. I tried to use param but it is giving null values.Following is my code:
Page:
<apex:pageBlockSection id="FolderName" collapsible="true" title="Folder">
				<apex:repeat value="{!foMapNames}" var="fokey">
					<apex:commandLink value="{!foMapNames[fokey]}" action="{!folderIn}" reRender="none">
						<apex:param value="{!fokey}" assignTo="{!foId}"/>
					</apex:commandLink>
					<br/>
				</apex:repeat>
			</apex:pageBlockSection>

here fokey is null.
 
Raj VakatiRaj Vakati
Change as below 
 
<apex:pageBlockSection id="FolderName" collapsible="true" title="Folder">
				<apex:repeat value="{!foMapNames}" var="fokey">
					<apex:commandLink value="{!foMapNames[fokey]}" action="{!folderIn}" reRender="none">
						<apex:param value="{!foMapNames[fokey]}" assignTo="{!foId}"/>
					</apex:commandLink>
					<br/>
				</apex:repeat>
			</apex:pageBlockSection>

 
Krishnan MishraKrishnan Mishra
I want to send the key i.e; fokey to the apex, not the value of the map corrosponding to the fokey.