Re: String a == String b

2016-06-03 Thread Gilberto
Reading here (http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html), it seems that Java Strings are converted to Javascript primitive strings (not string objects)... That way, you can't compare pointers to them - if they contain the same characters, they are equal to each other

JsInterop and Java collections?

2016-06-03 Thread Hristo Stoyanov
Hi all, I might have missed this in the JsInterop specs, but how is JsInterop handling Java collections, e.g is this going to work at all and what will the browser's JS engine see? @JsType(isNative = true, namespace = JsPackage.GLOBAL) > public class Somethin{ > @JsProperty > public

Re: gwt-inerop-utils preview

2016-06-03 Thread Hristo Stoyanov
Paul, I am also hesitating a bit too ... I see some people that I respect do go for the whole enchilada with no regrets. Here is a JS AP I that requires 4-argument

Re: gwt-inerop-utils preview

2016-06-03 Thread Paul Stockley
Jens, I can see your point, about the usability when you get many arguments. Originally I was going to kind of mirror the Java JDK and not go more than 2. Personally, I think it is a lot better to define custom interfaces when possible. To avoid having hundreds of class files I have started

Re: gwt-inerop-utils preview

2016-06-03 Thread Paul Stockley
Jens, -- 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+unsubscr...@googlegroups.com. To post to this group, send email to

Re: jsinterop: GWT app as a widdget: default script injection fails.

2016-06-03 Thread Vassilis Virvilis
I haven't thought of multiple gwt widgets (I am struggling with one). Obviously you are correct in what you are saying. It would be cool if we could feed jsinterop the scope per js injection. However I can't imagine how that would be. You may need to change your interface (namespace argument) in

Re: jsinterop: GWT app as a widdget: default script injection fails.

2016-06-03 Thread Jens
Probably needs to be updated a bit if you want to run multiple GWT apps with different names/iframes as widgets on the page as you need a global variable per app then. If you know everything is served from the same domain you can probably also use window.frames['appId'].contentWindow But

Re: Designer Problem : « uibinder template should be in client package »

2016-06-03 Thread Steve Cook
This was an unacceptable solution for me as I needed to share features between modules and you cannot go up a directory. The problem: The UI Editor looks for a gwt.xml file, then reads it, if the file it finds does not contain the path which your UI xml file resides, it decides that it is not

Re: jsinterop: GWT app as a widdget: default script injection fails.

2016-06-03 Thread Vassilis Virvilis
So here is a hacky workaround: Q: What the hacky workaround enables? A: You can inject any js library you want in the GWT iframe thus succeeding encapsulation of the GWT and js code from the rest of the page. No duplicate libaries - no clashed versions etc. Q: Does it work? A: sort of. jquery