How can I loop the repeat and display the apex:inputCheckbox
?
Error
Unknown property 'n'
Controller
public List<String> ListOfNames {
get {
List<String> nameList = new List<String>();
for(String s : /*SOQL*/) {
nameList.add(s.Name);
}
return nameList;
}
}
Visualforce page
<apex:repeat value="{!ListOfNames}" var="n">
<apex:inputCheckbox value="{!n}"/>
</apex:repeat>
Here is what I want the output to be look like: