• Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieving radio button selected values.  RSS feed

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im having problem with radio button. How do i get the selected values of radio button? My radio button are grouped horizontally.
Example:

Name | Good | Average
ted | radiobutton1 | radiobutton2
ed | radiobutton1 | radiobutton2
teddy | radiobutton1 | radiobutton2


i have tried to follow this site http://balusc.blogspot.com/2006/06/using-datatables.html, but i dont know how to change the code to suit my requirement.

-Thanks.
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just access the bean property behind the 'value' attribute.

You of course realize that in case of a datatable, the 'value' attribute need to point to a property of the row object in question?
 
lynn fann
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i managed to get it work. thanks for your help.
 
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!