my dog learned polymorphism*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "hide radio button" Watch "hide radio button" New topic
Author

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?

Thanks.

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You can't. Just accordingly generate/change the list on every request.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: hide radio button