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
Rakesh KumarRakesh Kumar 

Repeat selectList in visualforce

Hi all,


I have one of requirment related to create dynamic SelectList in Visualforce page.




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]}"/>

when i am repeating it i am getting error at colored place that property is not recoginized .
Is there any possibility to create dynamic apex tag related to radios and select list.