Wednesday, April 26, 2017

JSF: the does not support the rendered attribute.

Your can use the itemDisabled attribute which still displays the item, but makes it unselectable.

The server side alternative is to bring in a JSTL <c:if> around the individual <f:selectItem> to contitionally add it to the view.

Or just clone the selectOneMenu and put different rendered condition there.