This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes selectOneRadio in several columns... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "selectOneRadio in several columns..." Watch "selectOneRadio in several columns..." New topic

selectOneRadio in several columns...

Daniel Rickardsson

Joined: Apr 19, 2006
Posts: 4

I wonder if anyone know how to get this layout(one column for the radio and a corresponding component in the same column but in the row beneath) for a selectOneRadio and any corresponing UIComponent?!

Here is what I mean:
radio1 | radio2 | radio3
text1 | text2 | text3

I early read a solution from Rajeev Ravindran where he fixed one row for each radio and a corresponing UIComponent in the other column, like this:
radio1 | text1
radio2 | text2
radio3 | text3

The solution was with panelGroup and panelGrid... but I don't fix it.

Please come back if anyone have a solution.

Bagwan Mehrat
Ranch Hand

Joined: Jan 26, 2002
Posts: 119
I don't know how to do this with regular JSF, but if you're using MyFaces, I believe Tomahawk's radio tag can do this. There's information on
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
not sure if this is what you are looking for ! i didnt like the alignment though.

[ April 19, 2006: Message edited by: Rajeev Ravindran ]

SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
Daniel Rickardsson

Joined: Apr 19, 2006
Posts: 4
Thanks for your reply!

But yes, the alignment seem's to be the problem... isn't there any way to "force" each radio to correspond to the underlaying inputText?!

Daniel Rickardsson

Joined: Apr 19, 2006
Posts: 4
Also thanks for your link to myFaces... but i'm using regular JSF technology and looking for a solution from that.
Consider Paul's rocket mass heater.
subject: selectOneRadio in several columns...
Similar Threads
declaritive validation - validwhen
selectOneRadio inside a columnEx
h:selectOneRadio automatically creates Table
Event handling
selectOneRadio with nowrap