title: How to reset dropdown on primefaces commandButton without java script?
body: <p>I want to reset <code>&lt;p:selectOneMenu&gt;</code> in primeface. I used <code>type="reset"</code> this can reset the text fields only not a <code>selectonemenu</code>. My code</p>
  
  <pre><code>    &lt;p:panel id="Applyleave_panel" &gt;
        &lt;p:selectOneMenu id="leavetype" value="#{requestbean.leavetype}" required="true" style="width:50%;"&gt;
          &lt;f:selectItem itemLabel="Select type" itemValue="" /&gt; 
          &lt;f:selectItems value="#{requestbean.leave_type}" /&gt;
        &lt;/p:selectOneMenu&gt;
      &lt;/panel&gt;
    &lt;p:commandButton value="Reset" type="reset"/&gt;
  </code></pre>