title: programmatic partial submit
body: <p>my form consists of following elements:</p>
  
  <ol>
  <li><strong>icefaces text field</strong> to enter search criteria.</li>
  <li><strong>icefaces command button</strong> (find) to make <strong>partial submit</strong> and populate a div with new list of matched users.</li>
  <li>other two icefaces text fields, when submitting whole form i need their values. </li>
  </ol>
  
  <p><strong>Requirement:</strong> i want when user press enter in the text input field, that find button gets clicked (when the button gets clicked by mouse it makes partial submit automatically)</p>
  
  <p>so here's what i tried:</p>
  
  <pre><code>&lt;ice:inputText id="recipient" value="#{myBean.searchValue}" size="60" 
                       onkeydown="handleEnter(event,this.form);" &gt;
                  &lt;/ice:inputText&gt;
  
                  &lt;ice:commandButton id="find" value="Find"  action="#{myBean.findEmployees}" partialSubmit="true"
                       &gt;
                      &lt;f:ajax execute="@this" render="employees" /&gt;
                  &lt;/ice:commandButton&gt; 
  </code></pre>
  
  <ul>
  <li><p>the JS method:</p>
  
  <pre><code>function handleEnter(event,form){
  
     if (event.keyCode == 13){
      document.getElementById(form.name+':find').click(); 
     }
  }
  </code></pre></li>
  <li><p>the generated ice command button:</p>
  
  <pre><code> &lt;input type="submit" value="Find" style="width: 60px;"     onfocus="setFocus(this.id);"     onclick="iceSubmitPartial(form, this, event);return false;" onblur="setFocus('');" name="myForm:find" id="myForm:find" class="iceCmdBtn findButton"&gt;
  </code></pre></li>
  </ul>
  
  <p><strong>ISSUE:</strong> what happens is the when user press enter, find button is invoked, but whole form gets submitted, so a required validation error appears for the other two text fields.</p>
  
  <p>please advise why whole form is getting submitted, and how to handle such issue. </p>