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
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply 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
Klaus Claszen
Greenhorn

Joined: Jun 20, 2007
Posts: 16
Hi,

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



Regards
Klaus
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to set the defaule selection for selectOneRadio
 
Similar Threads
Nest the selectOneRadio Under the selectManyCheckbox
Using boolean value in SelectOneRadio
JSF2 Populate SelectOneRadio with Enum values
selectOneRadio problem
JSF SelectOneRadio and inputText