• Post Reply Bookmark Topic Watch Topic
  • New Topic

Default selected radio button for <h:selectOneRadio> in JSF

 
Yogeshwaran Sg
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


aH is a bean and type will be a property in the bean.

Initially aH.type will have a value "XYZ" which is not matching with any of the selectItem in the UI (initial value will always be "XYZ"). But i need the item "ABC" to be selected(checked) in the page load by default.

I have tried Checked="Checked", but of no use. Please help me to achieve this.
 
Maks Besida
Greenhorn
Posts: 13
Chrome Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you initially return value "ABC" from getType()?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!