Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSF and the fly likes hide radio button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "hide radio button" Watch "hide radio button" New topic

hide radio button

lynn fann
Ranch Hand

Joined: Oct 15, 2006
Posts: 115
i have 3 radio button on my form, and i only want to display 1 radio button when i load page as the 2nd radio button should appear only 1st radio button is selected.

How do i hide the 2nd radio button? I try to use the following, but it doesn't work, i will still show all the radio button at 1 go.:

can i use rendered attribute for selectItem? if no, what should i use?


Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You can't. Just accordingly generate/change the list on every request.
I agree. Here's the link:
subject: hide radio button
jQuery in Action, 3rd edition