• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spacing radio buttons

 
Peter Fat
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I'm using a h:selectOneRadio, with 2 radio buttons that have no labels. But since they have to be in the same cell (because they have dynamic ids), I can't separate them. My code:



How can I solve this?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, they're not in "the same cell".

SelectOneRadio renders as an HTML table. Each button is a cell in that table. However, it's an anonymous cell. So the solution is to apply a styleClass to the selectOneRadio and use the magic of CSS to qualify it. If my CSS memory serves, that means something like:


 
Peter Fat
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're the man!!! Thank you so much!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic