I want to render a specific column based on the some conditions, the first is that a flag should be "TRUE" and the second is that the The ids should be the sames, like that, if a click on a specific row, only that row will be rendered but i get an error and i do not know why ?
Map key null not found in map. Error is in expression: '{!IF(AND(flag_placement,map_condidat_cv[key].Placement__c == IDplacement), TRUE, FALSE)}' in component
Here is my code :
<apex:pageBlockTable value="{!map_condidat_cv}" var="key" style="width:100%" >
<apex:column headerValue="Placement" value ="{!map_condidat_cv[key].Placement__r.name}" onclick="showPlacement('{!map_condidat_cv[key].Placement__c}')" rendered= "{!flag_placement == false}"/>
<apex:column headerValue="Placement" rendered="{!IF(AND(flag_placement,map_condidat_cv[key].Placement__c == IDplacement), TRUE, FALSE)}">
<apex:outputpanel>
<a href="#myAnchor"> Voir Plus de détail sur le placement </a>
</apex:outputpanel>
</apex:column>
</apex:pageBlockTable>
Note : IDplacement is an ID passed from the apex controller and i want to make sure that only the row with this ID will react .
{!IF(AND(NOT(ISBLANK(key)),flag_placement,map_condidat_cv[key].Placement__c == IDplacement), TRUE, FALSE)}
– Sergej Utko Mar 18 '16 at 11:32map_condidat_cv
i.e. fix the problem in the controller. – Keith C Mar 18 '16 at 11:52