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!

How can i get value selected of radio button??

843844Feb 12 2008 — edited Feb 14 2008
Hi
I am using data table to display a table and the code is
<h:dataTable var="tblVal" value="#{myBean.rowList}" >
	<h:column>
		<h:outputText value="#{tblVal.value}" />
	</h:column>
	<h:column>             								
		<h:selectOneRadio>
			<f:selectItems value="#{myBean.columnList}" />													
		</h:selectOneRadio>											
	</h:column>
</h:dataTable>
which displays table like
              US		UK		UAE
Tic	radiobutton	radiobutton	radiobutton
Tac	radiobutton	radiobutton	radiobutton
Toe	radiobutton	radiobutton	radiobutton
my problem is how can I get values of selected radio button??

myBeean contains
private List<SelectItem> rowList;//with getter
private List<SelectItem> columnList;//with getter
how can i get selected row whose radio button is clicked??

Please help!!!!


Thanks
Chhaya
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2008
Added on Feb 12 2008
16 comments
290 views