title: A more correct way of resetting a panelgrid in Java Server Faces
body: <p>Here is my registration.xhtml page I have made using Java Server Faces. What I'm trying to do is reset the panel of entries. To do this, i have simply labelled a button reset and put the page address in the action field so that the page re-loads so that the field is cleared. I was wondering if there was a more correct way of doing this... Thanks. (No insults about my lack of knowledge please, I am a complete novice)</p>
  
  <pre><code>            &lt;h:form&gt;
              &lt;h:commandButton value="Register" action="someotherpage.xhtml"/&gt; 
              &lt;h:commandButton value="RESET"  action="registration.xhtml"/&gt;
              &lt;/h:form&gt;
          &lt;/h:panelGrid&gt;          
      &lt;/h:body&gt;    
  &lt;/html&gt;
  </code></pre>