File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
selectOneRadio problem
Nest the selectOneRadio Under the selectManyCheckbox
JSF2 Populate SelectOneRadio with Enum values
JSF SelectOneRadio and inputText
Using boolean value in SelectOneRadio