Re: [fw-general] Zend_Paginator::toJson() incompatible with JsonRestStore

2010-04-22 Thread Guillaume ORIOL
Here is the filed issue: http://zendframework.com/issues/browse/ZF-9731 Le 21/04/10 22:34, Matthew Weier O'Phinney a écrit : -- Guillaume ORIOL wrote (on Wednesday, 21 April 2010, 10:22 PM +0200): You are right, but the example you take is not the Json I get from $paginator->toJson(). It is t

Re: [fw-general] Zend_Paginator::toJson() incompatible with JsonRestStore

2010-04-21 Thread Guillaume ORIOL
OK. I'll file the issue. Le 21/04/10 22:34, Matthew Weier O'Phinney a écrit : -- Guillaume ORIOL wrote (on Wednesday, 21 April 2010, 10:22 PM +0200): You are right, but the example you take is not the Json I get from $paginator->toJson(). It is the Json required by JsonRestStore. Is there som

Re: [fw-general] Zend_Paginator::toJson() incompatible with JsonRestStore

2010-04-21 Thread Matthew Weier O'Phinney
-- Guillaume ORIOL wrote (on Wednesday, 21 April 2010, 10:22 PM +0200): > You are right, but the example you take is not the Json I get from > $paginator->toJson(). > It is the Json required by JsonRestStore. > Is there something I misunderstand? I was saying that we need an issue filed so that

Re: [fw-general] Zend_Paginator::toJson() incompatible with JsonRestStore

2010-04-21 Thread Guillaume ORIOL
You are right, but the example you take is not the Json I get from $paginator->toJson(). It is the Json required by JsonRestStore. Is there something I misunderstand? Look at your example: [ {"prop1":"value1","prop2":"value2", ...}, {"prop1":"value1","prop2":"value2", ..

Re: [fw-general] Zend_Paginator::toJson() incompatible with JsonRestStore

2010-04-21 Thread Matthew Weier O'Phinney
-- Go Lists wrote (on Wednesday, 21 April 2010, 06:16 PM +0200): > All right Matthew, but even if the Json object has numeric index, I > am not sure it will fit JsonRestStore data format requirements > (array of objetcs instead of object of objects). Don't you think so? Look at your example:

Re: [fw-general] Zend_Paginator::toJson() incompatible with JsonRestStore

2010-04-21 Thread Go Lists
All right Matthew, but even if the Json object has numeric index, I am not sure it will fit JsonRestStore data format requirements (array of objetcs instead of object of objects). Don't you think so? -- Guillaume ORIOL wrote (on Wednesday, 21 April 2010, 04:08 PM +0200): As far as I know,

Re: [fw-general] Zend_Paginator::toJson() incompatible with JsonRestStore

2010-04-21 Thread Matthew Weier O'Phinney
-- Guillaume ORIOL wrote (on Wednesday, 21 April 2010, 04:08 PM +0200): > As far as I know, dojox.data.JsonRestStore expects to receive data in the > form: > [ > {"prop1":"value1", "prop2":"value2", ...}, > {"prop1":"value1", "prop2":"value2", ...}, > ... > ] > > On the server side, I fetc

[fw-general] Zend_Paginator::toJson() incompatible with JsonRestStore

2010-04-21 Thread Guillaume ORIOL
Hi, As far as I know, dojox.data.JsonRestStore expects to receive data in the form: [ {"prop1":"value1", "prop2":"value2", ...}, {"prop1":"value1", "prop2":"value2", ...}, ... ] On the server side, I fetch data with a paginator (Zend_Paginator_Adapter_DbSelect). This paginator implements