Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Radio button layout.  RSS feed

 
satyanarayana bnv
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using "selectOneRadio" in JSF. I need the layout of radio buttons in rows and columns other than "page direction" and "line direction". My requirement is like I have six radio buttons and I need them to be in 3 rows and 2 columns. Can anyone please help me.

Thanks in advance.

Satya
 
Akbar Basha R
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Satya,
You have to create a custom renderer and associate that for the radio button in faces-config.xml. In this way, you control how you want the html to be generated for the radio button.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!