Hi every body ,
I have a serious problem in jsf <h:selectOneRadio> component.
I am using two different <h:selectOneRadio> component .When I am clicking the first radio button I can get data from the data base & showing in my jsf , same as in the second radio button .
My problem is , I want to un check the first radio when I am clicking the second one .
Here is my code .
<h:selectOneRadio layout="pageDirection" immediate ="true" valueChangeListener="#{multiSite.getValue1}" onclick="submit()">
<f:selectItem id="item1" itemLabel="My value-1" itemValue="1" />
</h:selectOneRadio>
<h:outputText value="" />
<h:panelGrid width="100%" rendered="#{multiSite.renderValue1}">
<h:selectOneRadio styleClass="radioButtonDataText" layout="pageDirection" immediate ="true" >
<f:selectItems value="#{multiSite.myMap1}"/>
</h:selectOneRadio>
<h:outputText value="" />
<h:outputText value="" />
</h:panelGrid>
<h:selectOneRadio layout="pageDirection" immediate ="true"
valueChangeListener="#{multiSite.getValue2}" onclick="submit()" >
<f:selectItem id="item2" itemLabel="My value-2" itemValue="2" />
</h:selectOneRadio>
<h:panelGrid width="100%" rendered="#{multiSite.renderValue2}">
<h:selectOneRadio styleClass="radioButtonDataText" layout="pageDirection" immediate ="true" >
<f:selectItems value="#{multiSite.myMap2}"/>
</h:selectOneRadio>
<h:outputText value="" />
<h:outputText value="" />
</h:panelGrid>
Thanks ,
SB