title: Partially submitting a form for the purpose of "sequentially" asking for input
body: <p>I have a JSF page where users can enter their car into my database. The form has three input fields:</p>
  
  <ul>
  <li>Manufacturer</li>
  <li>Model</li>
  <li>Registration</li>
  </ul>
  
  <p>I am using PrimeFaces 3.0.M2 and both the <code>Manufacturer</code> and <code>Model</code> field are autocomplete input fields:</p>
  
  <pre><code>&lt;p:autoComplete id="manufacturer"
                  minQueryLength="3"
                  completeMethod="#{carController.completeManufacturer}"
                  forceSelection="true"
                  value="#{carController.manufacturer}" /&gt;
  </code></pre>
  
  <p>The field for the model looks the same, with slightly different values obviously.</p>
  
  <p>The managed bean looks as follows (slightly abbreviated):</p>
  
  <pre><code>private String manufacturer;
  private String model;
  private String registration;
  
  public List&lt;String&gt; completeManufacturer(String query) {
      List&lt;String&gt; ms = new ArrayList&lt;String&gt;();
      for (Manufacturer m : manufacturerFacade.findAllByName(query)) {
          ms.add(m.getLongName());
      }
      return ms;
  }
  
  public List&lt;String&gt; completeModel(String query) {
      List&lt;String&gt; ms = new ArrayList&lt;String&gt;();
      for (Model m :
              modelFacade.findAllByManufacturer(manufacturerFacade.findByName(manufacturer))) {
          ms.add(m.getShortName());
      }
      return ms;
  }
  </code></pre>
  
  <p>The problem lies in completing the <code>model</code> field. I need this field to only display autocompletion results based on the selected manufacturer, but the <code>manufacturer</code> String in the managed bean does not get populated until the entire form is submitted, so I cannot look the models up that are associated with the selected manufacturer.</p>
  
  <p>How would I go about submitting only the <code>manufacturer</code> field, without submitting the entire form, so I can look the models of the selected manufacturer up?</p>
  
  <p>Thanks!</p>