It's basically this Question: JSF 2.0 How to display a different h:panelGroup each time an item is selected from a selectOneMenu
But i'm using selectOneRadio and I don't have the f:ajax that the answers says it fixes. Any idea of what I could do to reRender my panelGroups?
I've tried with a4j:support but no success. It looks like it's going to reRender but nothing changes. Maybe i'm doing something wrong. So, I've put an onclick="submit()" on the selectOneRadio and it worked but it loads the whole page again.
<h:selectOneRadio value="#{myBean.selectedItem}" >
<a4j:support event="onclick" reRender="regionSomeItem,regionAnotherItem" />
<div class="cssClass">
<f:selectItem itemValue="someItem" itemLabel="Some Item"/>
</div>
<div class="cssClass">
<f:selectItem itemValue="anotherItem" itemLabel="Another Item"/>
</div>
<div class="clear"></div>
</h:selectOneRadio>
<a4j:region id="regionSomeItem" rendered="#{condition for some item}"/>
<a4j:region id="regionAnotherItem" rendered="#{condition for another item}"/>