aspose file tools
The moose likes JSF and the fly likes Display list of radiobuttons in one column Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Display list of radiobuttons in one column" Watch "Display list of radiobuttons in one column" New topic
Author

Display list of radiobuttons in one column

Amitkumar Fulambarkar
Greenhorn

Joined: Sep 17, 2008
Posts: 29
Hi,

I have to display the radio buttons in one column however, it displays in one line one after the other. Could someone help me with this?

Here is the code I am trying with.
.jsp



Bean:

H Jetly
Ranch Hand

Joined: Aug 26, 2010
Posts: 41


Increasing the number of columns in the panelGrid will get more than one radio buttons in a line.


Harsh Jetly
Amitkumar Fulambarkar
Greenhorn

Joined: Sep 17, 2008
Posts: 29
Hi Jetly,

Thank you for the reply. I want to have all the items in one column, hence I used



However, it still displays all the items in one row.
H Jetly
Ranch Hand

Joined: Aug 26, 2010
Posts: 41

You want to show all the radio buttons in a single line right ?
Amitkumar Fulambarkar
Greenhorn

Joined: Sep 17, 2008
Posts: 29
Yes. It is resolved with the following code. I used layout attribute



H Jetly
Ranch Hand

Joined: Aug 26, 2010
Posts: 41

Great
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Display list of radiobuttons in one column