Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

<h:selectOneRadio> problem

843844Jun 1 2009 — edited Jun 3 2009
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

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 1 2009
Added on Jun 1 2009
13 comments
892 views