I have a map exposed to my visualforce page and I want to loop over it and display key and value
controller:
public Map<String,String> myMap { get; set; }
//init myMap
page:
<apex:repeat value="{!myMap.keySet() }" var="fieldKey">
key: {!fieldKey }
value: {!myMap.get(fieldKey ) }
</apex:repeat>
but it gives the error Error: Unknown function myMap.keySet. Check spelling