Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

defaulting " SelectOne Radio"

 
Chandrasekhar kotha
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tak Ng
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic