title: change selected item of selectonemenu primefaces by managedbean of javascript
body: <p>I want to change the selected value of this <code>selectOneMenu</code> either by managed bean or javascript:</p>
  
  <pre><code>&lt;p:selectOneMenu id="edit-article-famille" widgetVar="editFamille"
      required="true" requiredMessage="Veuillez choisir une famille"
      value="#{articlesMB.selectedFamille}"&gt;
    &lt;f:selectItem itemLabel="selectionner famille" itemValue=""/&gt;
    &lt;f:selectItems value="#{articlesMB.listFamilles}"/&gt;
  &lt;/p:selectOneMenu&gt;
  </code></pre>
  
  <p>How can I do it?
  In the primefaces user guide, they don't talk about that.</p>