title: How to remove a selected item from a selectOneMenu inside a dataTable?
body: <p>I have a <code>&lt;p:dataTable/&gt;</code> and on each row I have a <code>&lt;p:selectOneMenu/&gt;</code> and they are a list of integers from 1 to the number of items present on the list. So if I have a list with 30 items on my <code>&lt;p:dataTable /&gt;</code> on each <code>&lt;p:selectOneMenu/&gt;</code> will show the options from 1 to 30. However, I am facing a problem with these <code>&lt;p:selectOneMenu /&gt;</code> inside my <code>&lt;p:dataTable /&gt;</code>. If an item is selected in one row I have to remove this item from the others <code>&lt;p:selectOneMenu/&gt;</code>. For instance, if the item '1' is selected then all the others  cannot have the number '1' available as an option to be selected. </p>
  
  <p>So is there a way that I can do on my managed bean/controller? I've tried to get the <code>&lt;p:selectionOneMenu/&gt;</code> by using javascript but I didn't succeed because I had problems to get the clientId and also the selectOneMenu uses a div in order to show the items. Any thoughts on this issue?</p>
  
  <p>This is my xhtml</p>
  
  <pre><code>&lt;p:dataTable id="dataTableSolicitacoes" value="#{pesquisarItemSolicInvestController.listaSolicitacoes}"
              selectionMode="single" var="_solicitacao" rowKey="#{_solicitacao.index}" rowIndexVar="index"
              selection="#{pesquisarItemSolicInvestController.linhaSelecionada}"
          &lt;p:ajax event="rowSelect" listener="#{pesquisarItemSolicInvestController.onRowSelect}" process="@(#dataTableSolicitacoes)" update="@(#dataTableSolicitacoes), @(#panelBotoes)" /&gt;       
          &lt;p:column style="vertical-align: middle; width: 60px !important;"&gt;
              &lt;f:facet name="header"&gt; 
                  &lt;h:outputText value="#{messages.LABEL_PRIORIDADE}" title="#{messages.TITLE_INFORME_ORDEM_PRIO}"/&gt; 
              &lt;/f:facet&gt;
              &lt;p:selectOneMenu id="cbPrioridade" value="#{_solicitacao.prioridade}" style="width:60px !important;"
                  styleClass="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" 
                  disabled="#{!mf:hasPermission(securityController,'manterItensEnviados,manter')}"&gt;
                      &lt;f:selectItem itemLabel="" itemValue="" noSelectionOption="true" /&gt;
                      &lt;f:selectItems value="#{pesquisarItemSolicInvestController.listaPrioridades}" /&gt;
                      &lt;p:ajax event="change" listener="#{pesquisarItemSolicInvestController.mudarPrioridade(_solicitacao.index)}" 
                          process="@(#dataTableSolicitacoes), @(#panelBotoes)" update="@(#dataTableSolicitacoes), @(#panelBotoes)" /&gt;                 
              &lt;/p:selectOneMenu&gt;
          &lt;/p:column&gt;
      &lt;/p:dataTable&gt;
  </code></pre>