title: Submit data from a submit event in Oracle Jet
body: <p>I am trying to <code>POST</code> data from submit event. The request to the REST service itself is working. The REST service has two parameters <code>user</code> and <code>password</code>.
  I print-out the two parameters so I know my view model contains the data.
  How can I add the parameters to the request, the values are empty on the server-side?</p>
  
  <p>PS. Oracle Jet is build on KnouckoutJS, JQuery and some other JS libs. </p>
  
  <p>login.js</p>
  
  <pre><code>function homeContentViewModel() {
      var self = this;
  
      self.user = ko.observable("Super");
      self.password = ko.observable("Sectret");
      self.userInput = ko.pureComputed(function () {
          return this.user() + " " + this.password();
      }, this);
  
      self.submitBt = function (data, event) {
          alert(self.user() +" - " +self.password());
          $.ajax({
              url: "http://localhost:8080/myservice/rest/application/loginUser",
              data: {user: self.user(), password: self.password()},
              type: 'POST',
              dataType: 'json',
              success: function (data, textStatus, jqXHR) {
                  var x = data;
  
              }
          });
          return true;
      }
  }
  </code></pre>
  
  <p>login.html</p>
  
  <pre><code>&lt;label for="text-input"&gt;User:&lt;/label&gt;
      &lt;input id="text-input" type="text"
             data-bind="ojComponent: {component: 'ojInputText', value: user}"/&gt;
  
  &lt;label for="text-input"&gt;Password:&lt;/label&gt;
      &lt;input id="text-input" type="text"
             data-bind="ojComponent: {component: 'ojInputText', value: password}"/&gt;
  
      &lt;br/&gt;
  
  &lt;input id="submit" type="submit" data-bind="click: submitBt, 
          ojComponent: {component: 'ojButton', label: 'Login'}"/&gt;
  </code></pre>