How to conditionally render an f:selectItem tag?
How can I specify a conditional rendering for an <f:selectItem> tag. I need to display <f:selectItem> options according to a specific user's status. For example, I wanted something like: <f:selectItem itemLabel="Yes! I need a girlfriend!" rendered="false(or some boolean condition)" itemValue="o1"/> BalusC The <f:selectItem> does not support the rendered attribute. Your closest bet is the itemDisabled attribute which still displays the item, but makes it unselectable. This is also supported in <f:selectItems> . In case of <p:selectOneMenu> you can then just add some CSS to hide disabled items.