title: Can't reset input Field JSF
body: <p>I'm trying to rest all <code>inputValues</code> for JSF prime faces: </p>
  
  <p>I have some InputFields and some select menus, menus are working ok after hit SAVE button, but input values not cleared</p>
  
  <p>I don't wanna to use spearat button, I want to make it automatic just after hit save then reset all input fields: </p>
  
  <p>HTML code : </p>
  
  <pre><code>    &lt;/h:form&gt;       
                          &lt;center&gt;
              &lt;h:form id="form" style="width: 600px; text-align: center;"&gt;
  
              &lt;p:panel id="panel" header="اضافه طالب غائب"&gt;
                  &lt;p:growl id="msgs" showDetail="true" /&gt;
                      &lt;p:panelGrid columns="2"&gt;
  
  
                         &lt;h:outputLabel value="رقم المعلم:" /&gt;
                          &lt;p:inputText label="رقم المعلم" required="true"
                          requiredMessage="Contact Number required!"
                          style="width: 150px; text-align: center;"
                          value="#{pprBean.teacherid}"/&gt;                  
  
  
  
  
  
                  &lt;h:outputLabel  value="اختر الفصل" /&gt;
  
  &lt;p:selectOneMenu id="city20" value="#{pprBean.classname}" style="text-align:center;"&gt; 
                  &lt;f:selectItem itemLabel="اختر الفصل" itemValue="" style="text-align:center;" /&gt;  
                  &lt;f:selectItems value="#{pprBean.clasess}" style="text-align:center;" /&gt;     
                  &lt;p:ajax update="city21"  
                          listener="#{pprBean.handleclassnameChange}" /&gt; 
              &lt;/p:selectOneMenu&gt;          
  
  
                          &lt;h:outputLabel  value="اختر الطالب" /&gt;
                                      &lt;p:selectOneMenu id="city21" value="#{pprBean.names}" style="width:140px; text-align:center;"&gt; 
                  &lt;f:selectItem itemLabel="اسم الطالب" itemValue="" style="text-align:center;" /&gt;  
                  &lt;f:selectItems value="#{pprBean.studentnames}" style="text-align:center;" /&gt;     
                  &lt;p:ajax update="" listener="#{pprBean.handlenamesChange}" /&gt;  
              &lt;/p:selectOneMenu&gt; 
  
  
                              &lt;h:outputText value="الفتره من " /&gt;
                              &lt;p:calendar value="#{pprBean.from}" showButtonPanel="true"
                                  pattern="yyyy-MM-dd" 
                                  style="width: 200px; text-align: center;" /&gt;
  
  &lt;h:outputLabel  value="الحصة" /&gt;
  &lt;p:selectOneMenu id="city1" value="#{pprBean.interval}" style="width:140px; text-align:center;"&gt;  
                  &lt;f:selectItem itemLabel="اختر الحصة" itemValue="" style="width:140px; text-align:center;" /&gt;  
                  &lt;f:selectItems value="#{pprBean.intervals}" style="width:140px; text-align:center;" /&gt;     
                  &lt;p:ajax update=""  
                          listener="#{pprBean.handleintervalChange}" /&gt;  
              &lt;/p:selectOneMenu&gt;  
  
  
  &lt;h:outputLabel value="الحالة" /&gt;
  &lt;p:selectOneMenu id="city3" value="#{pprBean.appsent}" style="text-align:left;"&gt;  
                  &lt;f:selectItem itemLabel="حالة لغياب" itemValue="" style="text-align:left;"/&gt;  
                  &lt;f:selectItems value="#{pprBean.apssents}" style="text-align:left;" /&gt;     
                  &lt;p:ajax update=""  
                          listener="#{pprBean.handleappsentChange}" /&gt;  
              &lt;/p:selectOneMenu&gt; 
  
                      &lt;/p:panelGrid&gt;
                      &lt;/p:panel&gt;
                      &lt;p:commandButton action="#{pprBean.insert}"
                              value="ادخال" update="form"/&gt;
  
  
              &lt;/h:form&gt;
  
          &lt;p:ajaxStatus style="width:64px;height:64px;position:fixed;right:5px;bottom:5px"&gt;  
      &lt;f:facet name="start"&gt;  
          &lt;p:graphicImage value="/css/loading.gif" /&gt;  
      &lt;/f:facet&gt; 
  
  
      &lt;f:facet name="complete" process="@this" type="org.primefaces.examples.view.CleanLocalValuesListener"&gt; 
  
          &lt;h:outputText value="" /&gt;  
      &lt;/f:facet&gt;  
  &lt;/p:ajaxStatus&gt;
              &lt;/center&gt;
              &lt;br /&gt;  
              &lt;br /&gt;  
          &lt;/ui:define&gt;
      &lt;/ui:composition&gt;
  &lt;/h:body&gt; 
  </code></pre>
  
  <p>code :</p>
  
  <pre><code>    public void reset() {  
      RequestContext.getCurrentInstance().reset("form:panel"); 
      teacherid=null;
      classname=null;
      interval=null;
      studentcode=null;
      names=null;
      from=null;
  } 
  </code></pre>