title: Submit a JSF form using GET
body: <p>How do I submit a form to the same page and use GET parameters?</p>
  
  <p>JSF page contents:</p>
  
  <pre><code>&lt;f:metadata&gt;
      &lt;f:viewParam name="item1" value="#{bean.item1}"/&gt;
      &lt;f:viewParam name="item2" value="#{bean.item2}"/&gt;
  &lt;/f:metadata&gt;
  
  ...
  
  &lt;h:form&gt;
    &lt;h:inputText value="#{bean.item1}"/&gt;
    &lt;h:inputText value="#{bean.item2}"/&gt;
  
    &lt;h:button value="Submit" &gt;
        &lt;f:param name="item1" value="#{bean.item1}"/&gt;
        &lt;f:param name="item2" value="#{bean.item2}"/&gt;
    &lt;/h:button&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>If I request the page: form.jsf?item1=foo&amp;item2=bar, it will populate the text fields, but the form submission to itself doesn't seem to work.</p>