I have a VF component which has the following code, where the item
variable is of type Map<String, object>
:
<apex:outputPanel value="{!item['Id']}" />
<apex:commandLink value="View Details" action="{!setActiveItem}" reRender="{!$Component.su_form.su_details}">
<apex:param name="itemId" value="{!item['Id']}}"/>
</apex:commandLink>
The outputPanel displays the ID of the item properly. However, the parameter is null in the controller. If I statically set the value of the parameter, such as like this <apex:param name="itemId" value="{!'a0R0a00000B5hNeEAJ'}"/>
then I can see the Id value in the controller.
So I know that the VF Component is passing the parameter properly, and I know that the 'Id' key is not null in the item
map. However, in the code block above, I get a null value in the controller. Why would this be?