Re: JsInterop Shared Model + REST API

2017-11-21 Thread Chris L
Paul, If I go with T Broyer's suggestion of making User extend JavaScriptObject then would interop-utils be able to handle an array property User[] users within User for deserialization? I'm trying to work around the issue of having a list deserialized as its correct type. Ultimately I'd like

Re: JsInterop Shared Model + REST API

2017-11-18 Thread Thomas Broyer
On Saturday, November 18, 2017 at 9:52:09 AM UTC+1, Chris L wrote: > > I'm trying to create a shared model in my GWT 2.8.2 application that I can > use both at the server and in GWT client code. > > My research/Google Fu tells me that this might be possible with JsInterop > but since I'm new

Re: JsInterop Shared Model + REST API

2017-11-18 Thread Paul Stockley
gwt-interop-utils shows one way of doing it. This assumes you are OK using intermediate collection types. https://github.com/GWTReact/gwt-interop-utils/blob/master/DOCUMENTATION.md On Saturday, November 18, 2017 at 3:52:09 AM UTC-5, Chris L wrote: > > I'm trying to create a shared model in my

JsInterop Shared Model + REST API

2017-11-18 Thread Chris Lapes
I'm trying to create a shared model in my GWT 2.8.2 application that I can use both at the server and in GWT client code. My research/Google Fu tells me that this might be possible with JsInterop but since I'm new to JsInterop I'm just not sure. I've done some experiments but I've run into a