Add http request header "X-Requested-With" with value "XMLHttpRequest" for datasets and dynamic forms to know on server that request AJAX client.
May be when dataset's transport is "RPCTransport.XMLHTTPREQUEST".
Example:
P.S. just most AJAX frameworks do it.
May be when dataset's transport is "RPCTransport.XMLHTTPREQUEST".
Example:
Code:
public Object transformRequest(DSRequest dsRequest){ Map<String, String> headers = new HashMap<String, String>(); headers.put("X-Requested-With", "XMLHttpRequest"); dsRequest.setHttpHeaders(headers); return super.transformRequest(dsRequest); }