You are using two different source of data - url and some incoming data object, is it expected? Normally grid has only one source the remote url ( that must return a valid JSON data ) or a local JSON data object.
Is above url returns a valid JSON data ?
Is records.data.data is an array of data or data collection object ?
Hello,
The Json is valid, and it is generation from REST-EASY jboss.
i manage to make it work by doing by hand my own output that patch your binding requirement, and it work , it s a bit sad, but fair enough.
i thought i could iterate inside the datastructure by specifiying a kind of root path that define the iterative,repetitif data block.
thanks a lot for your answer and the good framwork
we continue to evaluate it
david
on the server side :
BookListing listing = getListing();
BadgerContext context = new BadgerContext(BookListing.class);
StringWriter writer = new StringWriter();
Marshaller marshaller = context.createMarshaller();
marshaller.marshal(listing, writer);
return writer.toString();
that is easy
on the client side, we could get from your ajax api and rework it…but that is a bit sad.it would be so nice to customise the data binding…as long as the repetitive block is constistent…
but you know …i am just a pure c++ guy
Hi MakSim,
i would like to thank you alot, to highlite how it must be done and give me as well the hint about the datadriver documentation, that is great , superb,thanks alot , it make the service easy to develop , easy to bing what else ?
i start to like javascript again