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
keshin okawakeshin okawa 

Show wrapperClass to visualforce page

Good day everyone,

I have created a wrapper class which is something like this:
public class wrapperClass {
        public Map<String,List<String>> selectedDefinitionList{get;set;}
        public Boolean isSelect{get;set;}
        public wrapperClass(Map<String,List<String>> selectedDefinitionList, boolean isSelect ) {
            this.selectedDefinitionList = selectedDefinitionList;
            this.isSelect = isSelect;

The purpose of this wrapper class is to combine the value of a map and a checkbox. At the moment I've tried to view the data of my wrapper and it is working as expected, but my problem is that how will i show the data of my wrapper specifically the map in it to my visual force page(pageblockTable). I've made something like this :
<apex:pageBlock > 
<apex:pageBlockTable value="{!AllObjectFieldMap}" var="field" styleClass="table table-striped">
<apex:column value="{!field.selectedDefinitionList}" headerValue="Salesforce Field"/>
But I cannot see those data inside my map. I think I am lacking something. Please help thank you...
Suraj GharatSuraj Gharat
Hi Keshin,

MAP is collection of key-value pairs. You need to iterate MAP using its key values. Below link below help understand: