I have this JSF page:
<h:selectOneRadio id="regions">
<f:selectItem id="eu" value="EU"/>
<f:selectItem id="us" value="US"/>
</h:selectOneRadio>
<h:selectOneListbox>
<f:selectItems value="#{dataFetcherBean.regions}" itemLabel="..."/>
</h:selectOneListbox>
dataFetcherBean.regions
is a HashMap<String, List<String>>
collection. What I want, is to show different data in ListBox depending on what radio button is selected.
Is there a way to get the currently selected value in regions radio buttons to itemLabel
in the ListBox?