When defining a Grid (using JSP wrapper) my servlet receives the parameters pageSize, take, skip and page as a JSON string in the name part of the parameters. I mean, the servlet receives one single parameter which name is: {“take”:10,”skip”:0,”page”:1,”pageSize”:10} and the value is empty.
Equivalent code using JavaScript (traditional KendoUI) receives 4 parameters:
- name:
take, value: 10 - name:
skip, value: 0 - name:
page, value: 1 - name:
pageSize, value: 10
Is this difference intentional?
Is correct encoding a JSON string as the name of the parameter?
The problem is in JSP tag library: when
parameterMapisnull(not defined)TransportTag.doEndTagdefinesparameterMapas:instead of leaving it empty, preventing JavaScript
RemoteTransport.setup(client side) from invokingidentityfunction as happens for other frameworks.Removing this extra generation in the taglib, causes JSP wrapper to generate the same HTML/JavaScript code.