title: Seam/JSF form submit firing button onclick event
body: <p>I have a search form with a query builder. The builder is activated by a button. Something like this</p>
  
  <pre><code>&lt;h:form id="search_form"&gt;
    &lt;h:outputLabel for="expression" value="Expression"/&gt;
    &lt;h:inputText id="expression" required="true" value="#{searcher.expression}"/&gt;
    &lt;button onclick="openBuilder(); return false;"&gt;Open Builder&lt;/button&gt;
    &lt;h:commandButton value="Search" action="#{searcher.search}"/&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>The result is HTML that has both a <code>&lt;button/&gt;</code> and an <code>&lt;input type="submit"/&gt;</code> in the form. If the user enters a string into the expression field and hits the enter key rather than clicking the submit button, the query builder is displayed when the expected behavior is that the search be submitted. What gives?</p>