On Thu, Nov 21, 2013 at 6:46 PM, Danilo Reinert <[email protected]>wrote:
> Hi all, > > Finally I've made an acceptable implementation of List<T> for > JavaScriptObjects. > > Thanks to T. Broyer's suggestion on this > topic<https://groups.google.com/d/msg/google-web-toolkit/_8X9WPL6qwM/C8GfwAM0ItAJ> > I've > achieved a performant solution for it. > > Can you give more details? > The main problem was the toArray() method. Using this > class<https://code.google.com/p/gwt-in-the-air/source/browse/trunk/src/net/ltgt/gwt/jscollections/client/JsArrays.java>, > It's possible to convert a JsArray to a Object[] without iterating over it. > > The contract of toArray requires copy. How do you exactly handle that? > Now I finally can receive a json array from my RESTful backend application > and throw it into a CellTable directly. > > > In order to make it possible I had to use the above mentioned JsArrays > class and an own extension of JsArray (used only as a internal of the > JsArrayList). > > > Would it be interesting for GWT core? > > -- > D. Reinert > > -- > http://groups.google.com/group/Google-Web-Toolkit-Contributors > --- > You received this message because you are subscribed to the Google Groups > "GWT Contributors" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
