I am doing a POST
-request using jQuery which seems to succeed. But how can I work with that on server side and modify the response?
Do I need another servlet because the Faces Servlet is just not designed to deal with this?
$.ajax({type:'POST', data:{"status":status}, success: function(response) {
alert("Qapla'");
}});
It is used for the following process:
- user inputs address and hits
commandButton
which invokes JS - JS retrieves geodata using google maps and sends it to server (which I am considering to use the above code for)
- the servers responds sending some close places from database
- JS retrieves exact distances using google maps again and sends them to server
- server redirects client to next page with results
There is one case where a failing validation for the used inputText
might be needed: At point 2 the server rates the geodata as not valid.