Hi Team,
I was trying to submit a JSON object from UI using the dhx.ajax().post(),
The Server side code is identifying the response based on the content type,
Like in Jersey @consume(MediaType.APPLICATION_JSON)
So always server side expect these things from UI
POST action
RequestHeader will be application/JSON
I gone through the touchui_deubug.js source file and found this code, right now i was confused on this, that whether i will be able to handle my use case.
if (this.post)
x.setRequestHeader(‘Content-type’,‘application/x-www-form-urlencoded’);
As the request header type is different , it was not even triggering to restful service . the same thing is working with
an advanced rest client with POST , application/json as request header.