Re: [gwt-contrib] Re: JsInterop Object Literal

2016-03-21 Thread Paul Stockley
I have come up with 3 approaches to creating object literals given the current JsInterop capabilities: *1) Construct and set the fields individually* @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") class SomeObjectLiteral { int field1; String field2; } SomeObje

[gwt-contrib] Re: Trying to use JsInterop to work with React

2016-03-21 Thread Paul Stockley
> > I am making decent progress refining the API and making it more usable. I > have decided to do a direct port > > of http://todomvc.com/examples/react/#/. One of the reasons I chose this was so I could have a direct comparison of the Javsascript vs Java code. I am about half way done. The

Re: [gwt-contrib] Re: JsInterop Object Literal

2016-03-21 Thread Paul Stockley
I think having a really succinct way of dealing with JS Object literals will be key to inter-op with existing java script code. Is the plan to land the enhanced support in the 2.x code base or will this be j2cl only? I really hope it will be included on 2.x In the meantime I have come up with a