Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSF and the fly likes How to set the defaule selection for selectOneRadio Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to set the defaule selection for selectOneRadio" Watch "How to set the defaule selection for selectOneRadio" New topic
Author

How to set the defaule selection for selectOneRadio

deepan thiagu
Greenhorn

Joined: May 15, 2007
Posts: 18
Hai every one
i dont know how to set defaule selection, for selectOneRadio. please any one give me the right solution
i give my sample code here


here i want to set male as a default selected one
Franz van Betteraey
Greenhorn

Joined: Jun 20, 2007
Posts: 18
Hi,

try to define the default value in your managed-bean configuration (faces-config.xml)



Regards
Klaus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set the defaule selection for selectOneRadio
 
Similar Threads
Using boolean value in SelectOneRadio
JSF SelectOneRadio and inputText
selectOneRadio problem
JSF2 Populate SelectOneRadio with Enum values
Nest the selectOneRadio Under the selectManyCheckbox