title: Potential Primefaces Dialog Enter Submit Bug?
body: <p>I have the exact same dialog form setup as the primefaces example below. When I put my cursor in the p:inputText on the below primefaces example and hit enter the window is closed automatically.  On  my example, I've even removed all links/buttons etc and just have a form and an input and it still closes the dialog when hitting enter.  Any way around this? </p>
  
  <p><a href="http://www.primefaces.org/showcase/ui/dialogForm.jsf" rel="nofollow">http://www.primefaces.org/showcase/ui/dialogForm.jsf</a></p>
  
  <p>mycode:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:dc="http://dc.dreamcatcher.com/facelet-taglib"&gt;
  &lt;ui:composition template="#{layoutBean.registeredTemplate}"&gt;
      &lt;ui:define name="content"&gt;
          &lt;h:form id="dreamModifyFrm"&gt;
          &lt;p:commandLink  onclick="webSearchDlg.show();" value="open"/&gt;
              &lt;p:dialog header="#{bundle['dreamSearch.HEADER']}"
                        widgetVar="webSearchDlg" modal="true" styleClass="dialog dialog2"
                        draggable="false" resizable="false" showEffect="fade" position="top"
                        hideEffect="fade"&gt;
                  &lt;p:inputText id="searchText" value="#{dreamSearchBean.searchText}"/&gt;
              &lt;/p:dialog&gt;
          &lt;/h:form&gt;
      &lt;/ui:define&gt;
  &lt;/ui:composition&gt;
  &lt;/html&gt;
  </code></pre>