Hi guys im trying to disable a selectOneRadio selection if the user have selected DOB from dropdown menu but it is still rendering the selectionOneRadio button
here is the code
Please select the criteria you wish to search :
<p:selectOneMenu value="#{bean.criteria}" effect="fade"
filterMatchMode="startsWith"
style="width:230px"
>
<f:selectItem itemLabel="#{bundle.labelUsername}" itemValue="username" />
<f:selectItem itemLabel="#{bundle.labelFirstName}" itemValue="firstName" />
<f:selectItem itemLabel="#{bundle.labelSurname}" itemValue="surname" />
<f:selectItem itemLabel="#{bundle.labelGender}" itemValue="gender" />
<f:selectItem itemLabel="#{bundle.labelDOB}" itemValue="DateOfBirth" />
<f:selectItem itemLabel="#{bundle.labelPhone}" itemValue="telephoneNumber" />
<f:selectItem itemLabel="#{bundle.labelEmail}" itemValue="emailAddress" />
<p:ajax update="searchMatch" event="valueChange"/>
</p:selectOneMenu>
Please select if you would like an exact or partial match
<p:selectOneRadio id="searchMatch" value="#{bean.match}" style="width:230px"
required = "True"
requiredMessage = "#{bundle.requiredMatch}"
rendered="#{bean.criteria !='DateOfBirth'}">
<f:selectItem itemLabel="Exact" itemValue="=" />
<f:selectItem itemLabel="Partial" itemValue="LIKE " />
</p:selectOneRadio>
how can i get it so that when DateOfBirth is selected the one radio button is disabled