I have a p:SelectOneRadio with 4 options in my form. I would like to set the condition Rendered to false only in one f:SelectItem, depending on user profile (stored on session)
E.g: If the user is an Administrator, he can see the option 4 (f:selectItem).
I already know how to do it, but it seems that the component SelectItem doesn't have the property "Rendered", what should i use to do that?
<p:selectOneRadio id="rdnNivel"
value="#{empresaController.selected.nivel}" layout="custom"
required="true"
requiredMessage="Select one option">
<f:selectItem itemLabel="Option 1" itemValue="1" />
<f:selectItem itemLabel="Option 2" itemValue="2" />
<f:selectItem itemLabel="Option 3" itemValue="3" />
<f:selectItem itemLabel="Option 4" itemValue="4"/>
Thank's !