my dog learned polymorphism*
The moose likes JSF and the fly likes defaulting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "defaulting " SelectOne Radio"" Watch "defaulting " SelectOne Radio"" New topic
Author

defaulting " SelectOne Radio"

Chandrasekhar kotha
Greenhorn

Joined: Jun 27, 2005
Posts: 22
Hi

can some one help me in defaulting "selectOneRadio" in Oralce Adf. I need to select one radio buttion on load of page.

any ideas??

thanks
chandra.
Josh Juneau
Ranch Hand

Joined: Jun 16, 2004
Posts: 86
You may wish to try the selectBooleanRadio. I've used Oracle ADF components many times in the past, but never used the radio buttons unfortunately. However, the selectBooleanRadio looks like what you need:

http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/selectBooleanRadio.html


Database Administrator/Application Developer
Tak Ng
Greenhorn

Joined: Jun 05, 2007
Posts: 19
If you have a property in a backing bean associated to the radio button, you can set a default value in the backing bean and when the page loads, it will be selected by default.
siva shankar l
Greenhorn

Joined: Jul 14, 2011
Posts: 2
Chandrasekhar kotha wrote:Hi

can some one help me in defaulting "selectOneRadio" in Oralce Adf. I need to select one radio buttion on load of page.

any ideas??

thanks
chandra.



hi Chandrasekhar
you can use the fallowing code to get selectOneRadio in Oracle ADF

<af:selectOneRadio value="#{bean.aValue}" required="true">
<f:selectItem itemLabel="Option1" itemValue="1"/>
<f:selectItem itemLabel="Option2" itemValue="2"/>
<f:selectItem itemLabel="Option3" itemValue="3"/>
</af:selectOneRadio>
 
wood burning stoves
 
subject: defaulting " SelectOne Radio"
 
Similar Threads
WA #1.....word association
How to add UTF-8 encoding to JBOSS web app
B&S: Ideas in implementing search in GUI
radio -- 91fm
checkbox