Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

selectOneRadio in several columns...

 
Daniel Rickardsson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

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.

/Daniel.
 
Bagwan Mehrat
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 http://wiki.apache.org/myfaces/Radio
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not sure if this is what you are looking for ! i didnt like the alignment though.



Thanks,
Rajeev
[ April 19, 2006: Message edited by: Rajeev Ravindran ]
 
Daniel Rickardsson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Daniel Rickardsson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also thanks for your link to myFaces... but i'm using regular JSF technology and looking for a solution from that.
/Daniel.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic