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

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.