You need to sign in to do that
Don't have an account?
Repeat selectList in visualforce
Hi all,
I have one of requirment related to create dynamic SelectList in Visualforce page.
Controller...
public map<String,List<SelectOption>> radios = new map<String,List<SelectOption>>();
Map looks like :: radios[selRadio1,List1 of opitons,selRadio2,List2 of opitons,selRadio3,List3 of opitons,selRadio4,List4 of opitons];
public map<String,List<SelectOption>> getRadioList(){
retrun radios;
}
VF page...
<apex:repeat value='{!radioList}' var="sRadio">
<apex:selectRadio value="{!sRadio}">
<apex:selectOption itemValue="{!radioList[sRadio]}"itemLabel="{!radioList[sRadio]}"/>
</apex:repeat>