Re: GWT 2.8 delays

2016-06-02 Thread mark kevin ringor
https://www.youtube.com/watch?v=CElykwDVrBc Here is a video about GWT 2.8 On Sunday, May 8, 2016 at 11:26:22 PM UTC+8, steve Zara wrote: > > GWT 2.8 is now well over a year behind what seemed to be the original > schedule. I'm having to deal with colleagues who say they have lost > confidence i

Re: MaterialSearch - issues

2016-06-02 Thread mark kevin ringor
This is solved on 1.5.1 On Sunday, May 1, 2016 at 6:23:28 AM UTC+8, Velusamy Velu wrote: > > Hi Everyone - > > The GWT Material Design is a great contribution. I'm trying to use it in > our project (http://peruselab.com), we plan to release in Aug 2016. > > One of the component I'm trying to use

Having trouble with GWT JSNI

2016-06-02 Thread Andrew Ferguson
Hi, Firstly I must say that I am not a GWT or Java developer. I have come across GWT because a tool I need to incorporate into a JavaScript project has been written in GWT, and I need to figure out how to link the two projects together. >From looking at the documentation I see that JSNI is pro

Re: Having trouble with GWT JSNI

2016-06-02 Thread Thomas Broyer
On Thursday, June 2, 2016 at 11:11:18 AM UTC+2, Andrew Ferguson wrote: > > Hi, > > Firstly I must say that I am not a GWT or Java developer. I have come > across GWT because a tool I need to incorporate into a JavaScript project > has been written in GWT, and I need to figure out how to link th

Re: JsInterop and default settings in JS structures - how to handle?

2016-06-02 Thread Thomas Broyer
On Thursday, June 2, 2016 at 1:15:57 AM UTC+2, Hristo Stoyanov wrote: > > Hi all, > This is a pretty common in the JS world, but take a look at this JS > library , which as part of its API > has settings/options for configuration, where options are done with

Re: window.showModelDialog replacement

2016-06-02 Thread David
Because I don't have source code for old application so I moved the submit/action/cancel buttons out of the legacy page and used GWT to render them I have two questions Based on showModalDialog, must a child page have "window.returnValue = somevalue" before it is closed? On Wednesday, May 2

Re: window.showModelDialog replacement

2016-06-02 Thread David
Because I don't have source code for old application so I could not move the submit/action/cancel buttons out of the legacy page with using GWT to render them I have two questions 1. Based on showModalDialog, must a child page have "window.returnValue = somevalue" before it is closed? 2. Does

Re: MaterialSearch - issues

2016-06-02 Thread Velusamy Velu
Great, will await its release. Thanks Sam V On Thursday, June 2, 2016 at 4:53:44 AM UTC-4, mark kevin ringor wrote: > > This is solved on 1.5.1 > > On Sunday, May 1, 2016 at 6:23:28 AM UTC+8, Velusamy Velu wrote: >> >> Hi Everyone - >> >> The GWT Material Design is a great contribution. I'm tryi

Re: Having trouble with GWT JSNI

2016-06-02 Thread Andrew Ferguson
Hi Thomas, Thanks for the reply. I replaced my JSNI with the one you provided, and changed the signature to '*', but it still failed to compile. I tried changing the signature to 'I' in case that made any difference, but again it failed with the same error. The error I am getting is: [ER

Re: Having trouble with GWT JSNI

2016-06-02 Thread Thomas Broyer
On Thursday, June 2, 2016 at 3:36:51 PM UTC+2, Andrew Ferguson wrote: > > Hi Thomas, > > Thanks for the reply. I replaced my JSNI with the one you provided, and > changed the signature to '*', but it still failed to compile. I tried > changing the signature to 'I' in case that made any differen

Re: Having trouble with GWT JSNI

2016-06-02 Thread Andrew Ferguson
Hi Thomas, Thank you *so* much (I'm kicking myself because it was such a simple error!). I don't suppose you know how I could call an external JavaScript function from inside the GWT project? I cannot find any examples online that show this. Thanks again, Andrew On 02/06/16 14:42, Thomas

Re: Having trouble with GWT JSNI

2016-06-02 Thread Thomas Broyer
On Thursday, June 2, 2016 at 3:50:49 PM UTC+2, Andrew Ferguson wrote: > > Hi Thomas, > > Thank you *so* much (I'm kicking myself because it was such a simple > error!). > > I don't suppose you know how I could call an external JavaScript function > from inside the GWT project? I cannot find any

Re: Having trouble with GWT JSNI

2016-06-02 Thread Andrew Ferguson
Hi Thomas, Thank you very much, it is working now. I really /really /appreciate the help you've given me. Andrew On 02/06/16 15:14, Thomas Broyer wrote: On Thursday, June 2, 2016 at 3:50:49 PM UTC+2, Andrew Ferguson wrote: Hi Thomas, Thank you *so* much (I'm kicking myself becaus

Re: JsInterop and default settings in JS structures - how to handle?

2016-06-02 Thread Hristo Stoyanov
Thanks Thomas, I might have missed that reading the JsInterop specs ... So, your basically saying that while in Java these two fields would be initialized to *false *and *0 *by default, in JS they both end up undefined, when an object is created? *@JsType(isNative = true, name = "Object", names

Re: JsInterop and default settings in JS structures - how to handle?

2016-06-02 Thread Jens
As seen in the JsInterop document such public properties will default to whatever the native JS object defaults to after construction. // JS library com.acme.Foo = function() { // defaults this.x = 40; this.y = 2; }; com.acme.Foo.prototype.sum = function() { return this.x + this.y; };

Re: JsInterop and default settings in JS structures - how to handle?

2016-06-02 Thread Jens
> Do I have to provide defaults for callbacks and other properties? > No, the JS library provides the defaults as you have shown in the short JS code snippet. > What happens if I leave the properties uninitialized? What will the JS API > see with such partially supplied options - undefin

gwt-inerop-utils preview

2016-06-02 Thread Paul Stockley
I have committed an initial version of gwt-interop-utils. https://github.com/GWTReact/gwt-interop-utils This library provides some common utilities for working with JsInterop e.g. 1) Object Literal support 2) Shared JSON compatible structures 3) Common functional interfaces 4) JSON utilities 5)

Re: gwt-inerop-utils preview

2016-06-02 Thread Hristo Stoyanov
Thanks Paul, I was about to start releasing similar code . It does not make sense to do the same thing twice and obviously such utility code is necessary. So, I will use your project as it see

Re: gwt-inerop-utils preview

2016-06-02 Thread Hristo Stoyanov
... also, I noticed you are using the Steffan's GWT Gradle plugin. I did encounter subtle issues with it lately (see gihub issue threads) and realized it is no longer supported. I highly recommend switching to this one . It is simpler, provides

Re: gwt-inerop-utils preview

2016-06-02 Thread Paul Stockley
I will add 4 and 5 arg interfaces. I think I can include something equivalent with your above code. I already have getters/setters and is defined functions for objects. All you would need to do is pass $wnd into these. Let me have a play around and see what I can come up with. On Thursday, June

Re: gwt-inerop-utils preview

2016-06-02 Thread Paul Stockley
I will take a look at the putnami-gradle-plugin. I noticed Steffan's didn't seem to be supported. Thanks for the offer on migration. The projects are a bit in flux at the moment so probably better off not submitting a pull request until I have landed all the gwt-interop-utils changes. -- You r

Re: gwt-inerop-utils preview

2016-06-02 Thread Jens
> I will add 4 and 5 arg interfaces. > I can already smell the code smell.. void myAsyncFunction(Func5 onSuccess, Func5 onFailure); IMHO its fine to just have Func1 and for anything else chose a concrete name for a concrete functional interface so you have a place to document all these para

Re: gwt-inerop-utils preview

2016-06-02 Thread Hristo Stoyanov
Jen, If adding a couple of more interfaces is code smell, take a look at this ... Also, take a look at JS APIs like this - are we all supposed to define the same 4/5-ar

Re: gwt-inerop-utils preview

2016-06-02 Thread Hristo Stoyanov
Thanks Paul, Let me use the github issues forgiving you feedback, this forum is not the best way. On Thursday, June 2, 2016 at 2:17:10 PM UTC-7, Paul Stockley wrote: > > I will add 4 and 5 arg interfaces. I think I can include something > equivalent with your above code. I already have getters/s

Re: gwt-inerop-utils preview

2016-06-02 Thread Jens
> > If adding a couple of more interfaces is code smell, take a look at this > > ... > Yeah I know... > Also, take a look at JS APIs like this > - are we all suppos