This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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!