title: Form submit 400 required string parameter is not present
body: <p>I'm trying to simple POST data from my form to my spring controller and I always getting the error message:</p>
  
  <blockquote>
    <p>the server responded with a status of 400 (Required String parameter
    'profileId' is not present)</p>
  </blockquote>
  
  <p>my Form within my uiBinder:</p>
  
  <pre><code>&lt;g:FormPanel ui:field="formPanel"&gt;
          &lt;g:HTMLPanel&gt;
  
              &lt;table border="0" width="100%"&gt;
                  &lt;tr&gt;
                      &lt;td width="20%"&gt;&lt;g:HTML HTML="Profile ID:" /&gt;&lt;/td&gt;
                      &lt;td width="80%"&gt;&lt;g:TextBox name="profileId" ui:field="profileId" width="300px" "/&gt;
  
                      &lt;td width="20%"&gt;&lt;g:HTML HTML="Logo: " /&gt;&lt;/td&gt;
                      &lt;td width="80%"&gt; &lt;g:FileUpload name="logo" ui:field="logoUpload"/&gt; &lt;/td&gt;        
                  &lt;/tr&gt;           
              &lt;/table&gt;&lt;br/&gt;
  
          &lt;/g:HTMLPanel&gt;
  &lt;/g:FormPanel&gt;
  </code></pre>
  
  <p>the submit within the view:</p>
  
  <pre><code>String actionUrl = com.google.gwt.core.client.GWT.getHostPageBaseURL() + "/create";
  formPanel.setAction(actionUrl);
  formPanel.setEncoding(FormPanel.ENCODING_MULTIPART);
  formPanel.setMethod(FormPanel.METHOD_POST);
  formPanel.submit();
  </code></pre>
  
  <p>my spring controller:</p>
  
  <pre><code>@RequestMapping(method = RequestMethod.POST, value = "/create")
  @ResponseStatus(HttpStatus.CREATED)
  @ResponseBody
  public void create(@RequestParam("profileId") String profileId,
                     @RequestParam("logo") MultipartFile logo) throws BadRequestException, InternalException, NotFoundException{
      log.info("Request to create new user.");
  }
  </code></pre>
  
  <p>The request payload tracked with chrome dev tool:</p>
  
  <blockquote>
    <p>------WebKitFormBoundaryX7km8vQwaC3LtjqO Content-Disposition: form-data; name="profileId"</p>
    
    <p>test1
    ------WebKitFormBoundaryX7km8vQwaC3LtjqO Content-Disposition: form-data; name="logo"; filename="test1.png" Content-Type: image/png</p>
    
    <p>------WebKitFormBoundaryX7km8vQwaC3LtjqO--</p>
  </blockquote>
  
  <p>Eclipse console output:</p>
  
  <pre><code>[WARN] 400 - POST /create (127.0.0.1) 1495 bytes    Request headers
        Host: lokalhorst.com:55409
        Connection: keep-alive
        Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
        User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36
        Referer: http://lokalhorst.com:55409/admin.html
        Accept-Encoding: gzip,deflate
        Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
        Cookie: JSESSIONID=63vn7rbgnrqa
        Content-Length: 10244
        Pragma: no-cache
        Cache-Control: no-cache
        Origin: lokalhorst.com:55409
        Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryX7km8vQwaC3LtjqO    Response headers
        Content-Type: text/html; charset=iso-8859-1
        Content-Length: 1495
  </code></pre>
  
  <p>Thanks for any help.</p>
  
  <p><a href="https://stackoverflow.com/questions/17978333/http-status-400-required-string-parameter-xx-is-not-present">no duplication; also not helping</a></p>