title: Reset input fields in primefaces
body: <p>I have a Dialog to input details. At the first time , <strong><em>InputText</em></strong> are empty.
  But from the second input, <strong><em>InputText</em></strong> maintain the previous value. </p>
  
  <p>This is my code :</p>
  
  <pre class="lang-xml prettyprint-override"><code>     &lt;p:commandButton id="showDialogButton1" type="button" value="add" onclick="dlg1.show()" update="firstname1"/&gt;
       &lt;p:dialog id="dialogAjout" header="add department" widgetVar="dlg1" resizable="false"&gt;  
            &lt;h:panelGrid columns="2" style="margin-bottom:10px"&gt;  
                  &lt;h:outputLabel for="firstname1" value="Libellé :" /&gt;  
                  &lt;p:inputText id="firstname1" value="#{departementBean.departement.libelleDepartement}" /&gt;
            &lt;/h:panelGrid&gt;  
            &lt;p:commandButton id="submitButton1" value="Valider" oncomplete="dlg1.hide();" action="#{departementBean.addDept()}" update="tabView"/&gt; 
       &lt;/p:dialog&gt;
  </code></pre>
  
  <p>How can I resolve this, please !!</p>