Wednesday, March 2, 2016

Re: jsinterop

This works:

{'somecollection':['String1','String2'],'somestring':'text'}  
@JsType(isNative = true,namespace = JsPackage.GLOBAL,name="Object")  public interface Data {      @JsProperty      String[] getSomecollection();      @JsProperty      String getSomestring();  }    Data data = JsonUtils.safeEval(json).cast();  

On Tuesday, March 1, 2016 at 9:03:03 PM UTC+1, Eric Nissan wrote:

sorry if this has been answered, I just started using jsinterop in gwt 2.8.  What is the recommended way populate data into a jsinterop javascript object from my server.  Assuming I have Json, do we still use OverlayTypes?  or is there a better way to do it?

Always appreciative,
Eric

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment