users@javaserverfaces.java.net

Re: rendered attribute for SelectItem

From: Roger Kitain <Roger.Kitain_at_Sun.COM>
Date: Thu, 08 Nov 2007 09:51:30 -0500

Yeah...
HTML does not support "hidden" for <option> element - closest is "disabled".
You may be able to do something with a css style on the option element.
Your other option from a JSF perspective would be to have your model
determine which selectitems are created when the SelectOneMenu is rendered.

-roger

mjdenham wrote:
> Hi,
>
> I have a form with about 80 SelectOneMenu components on it and lots of
> relationships between the components and the list items.
>
> I was looking for SelectItem.rendered so that some items can be optionally
> hidden. Unfortunately SelectItem.rendered is not supported.
>
> Has anybody considered this functionality before?
>
> Thanks
>
> Martin
>