+ Start a Discussion

Can loop through the Map in Visualforce

Is it possible to loop through the Map COllection in Visualforce ? I know we can loop through the list, however, if I can have my data in a Map collection, then it make it easier for me to get the reference to the specific data within a Map, on the Apex side.



Support for handling iteration over maps and also accessing the size/length properties of collections is on the roadmap. For now you will need to leverage a tiny bit of apex code to expose a property on your controller that provides access to the values or keys lists.