PDA

View Full Version : Parameters for paging while http post in extjs



marcelo.both
8 Oct 2013, 4:28 AM
Hello I'm working on a extjs screen that has paging and the method to be used in the request must respond by HTTP POST verb.
I configured my store, so that all the read calls are posts. Realized that, extjs has simply passing the query string for the request payload, and I thought it would be possible to have the parameters separated, just as it would if it uses the params load of a store.
So I wonder if it's possible to have something like {params: {start: 0, page: 1, limit: 20}} in the request payload instead of the query string start = 0 & page = 1 & limit = 20.
I use Extjs 4.2 and Java with RESTEasy.

ettavolt
10 Oct 2013, 12:14 AM
You may want to override getParams (http://docs.sencha.com/extjs/4.2.2/source/Server.html#Ext-data-proxy-Server-method-getParams) of your proxy.

You actually do not use REST, but that, of course, may be easy.