title: How to disable the single value from list in f:selectitems?
body: <pre><code>   &lt;p:selectOneMenu id="currency" value="#{element.selectedCurrency}"&gt;
      &lt;f:selectItem itemLabel="--N/A--" itemValue="NA:-1"&gt;&lt;/f:selectItem&gt;
      &lt;f:selectItems value="#{returnBodyBean.selectedCurrency}"
                      var="currency"/&gt;
      &lt;p:ajax listener="#{returnBodyBean.onCurrencyChange(element)}"
      update="dataTypeConfigId,lovTypeId"&gt;&lt;/p:ajax&gt;
    &lt;/p:selectOneMenu&gt;
  </code></pre>
  
  <p>The List in f:selectItems contains 3 values. i want to disable the values in list based on selection of value in another drop down.
  for eg:- if i change the value in other dropdown, I want to disable two values in the f:selectitems list.
  Can you please tell me how to do it?</p>