I have a selectOneMenu that changes a value in the backing bean and based on that value, another component is being displayed or not. What I would like is to update that certain component after the value in the backing bean is changed by the selectOneMenu
<h:selectOneMenu value="#{backingBean.id.value}" >
<f:selectItem itemLabel="Choose" itemValue="0"/>
<f:selectItems value="#{backingBean.idList}"
var="id" itemLabel="#{id.name}" itemValue="#{id.value}" />
<p:ajax listener="#{backingBean.changeId}" process="@this" update="userMenu"/>
</h:selectOneMenu>
<p:menu id="userMenu" rendered="#{backingBean.id.value != 0}">
</p:menu>
The value changes in the backing bean but the is not updated.