Re: Emulating CompletableFuture with Promise

2016-09-09 Thread James Horsley
This is brilliant. I would *love *to see this in GWT proper. Maybe even a separate library temporarily since it won't make the 2.8.0 release train? On Fri, Sep 9, 2016 at 2:41 PM Andrei Korzhevskii wrote: > In this case I wanted 'new Promise', not 'Promise.resolve'.

Re: Is GWT is Dead?

2016-09-09 Thread Pablo Nussembaum
Google Inbox is 70% GWT code: https://gmail.googleblog.com/2014/11/going-under-hood-of-inbox.html https://news.ycombinator.com/item?id=8554339 On 06/09/16 17:06, Vassilis Virvilis wrote: > ok then gmail being written in GWT is urban myth. > > However looks like google group is written in GWT

Re: GWT 2.8.0 RC2 is here!

2016-09-09 Thread Thomas Broyer
On Friday, September 9, 2016 at 4:34:02 PM UTC+2, Василий Старцев wrote: > > Great! But there is a bug: > *com.google.gwt.i18n.client.impl.cldr.DateTimeFormatInfoImpl_ru* still > have wrong weekdays order. > > @Override > public String[] weekdaysFull() { > return new String[] { >

Re: Emulating CompletableFuture with Promise

2016-09-09 Thread Andrei Korzhevskii
In this case I wanted 'new Promise', not 'Promise.resolve'. Thanks for spotting that out! I've updated my branch. On Tuesday, September 6, 2016 at 10:09:28 PM UTC+3, Ian Preston wrote: > > For another hint, I think you don't want the "new" before > "Promise.resolve" on line 88 of impl/JsPromise

Re: GWT 2.8.0 RC2 is here!

2016-09-09 Thread Василий Старцев
Great! But there is a bug: *com.google.gwt.i18n.client.impl.cldr.DateTimeFormatInfoImpl_ru* still have wrong weekdays order. @Override public String[] weekdaysFull() { return new String[] { "воскресенье", "понедельник", "вторник", "среда", "четверг",

Re: Autocompletion with RPC under the MVP model : how to instanciate Suggestbox(suggestOracle) without refering any service into the view ?

2016-09-09 Thread Eddy
Thank you a lot for these detailed explanation which where very helpfull for me Thomas ! I add passed successfully all your methods, going through the proxy method, until the delegating object in order to be used with others views. (just could you give me the utility about the case of the word

GWT 2.8.rc2 doesn't work correctly for ie* values.

2016-09-09 Thread Rocco De Angelis
Hi All, it seems that: doesn't work correctly if my user.agent property contains an ie* value. For: and Two permutations will be generated: one for [gecko1_8, safari] and a second for [ie9]. Is that a bug or the does GWT team change something? BR Rocco -- You received this

jsinterop with browser-specific api

2016-09-09 Thread Zufar Fakhurtdinov
Hi all. I'm trying to understand how can I effective work with jsinterop and browser-specific api. For example Fullscreen api is mostly work in latest browsers, but methods are prefixed. Before jsinterop I was write something like this: public static native void leaveFullscreen() /*-{ if

Re: GWT 2.8.0 RC2 is here!

2016-09-09 Thread Василий Старцев
sorry for my english) In russia week starts with Monday (Понедельник) Such a difference leads me to use workarround instead of *LocaleInfo.getCurrentLocale().getDateTimeFormatInfo()* This case makes me in big disapointment: I run this code on JDK8 DateFormatSymbols symbols = new

Re: GWT 2.8.0 RC2 is here!

2016-09-09 Thread Thomas Broyer
The arrays are normalized to start on Sundays (you'd find the same oddity with the French locale, as weeks start on Monday too in France), you need to use firstDayOfTheWeek and adjust your indexes accordingly: for (int i = 0; i < 7; i++) { ….weekdaysFull()[(i + ….firstDayOfTheWeek()) % 7)];

Re: GWT 2.8.rc2 doesn't work correctly for ie* values.

2016-09-09 Thread Thomas Broyer
AFAICT it worked the same with 2.7. With the default user.agent values, I get 3 permutations. The compilation-mappings.txt for the sample app created with webAppCreator and added collapse-property is: 45FECB51EB688981D36858C76F8E630A.cache.js user.agent ie10

Re: GWT 2.8.0 RC2 is here!

2016-09-09 Thread Василий Старцев
Hmm. This is help. Thank you. -- 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

Re: jsinterop with browser-specific api

2016-09-09 Thread Thomas Broyer
On Friday, September 9, 2016 at 8:32:08 PM UTC+2, Zufar Fakhurtdinov wrote: > > Hi all. I'm trying to understand how can I effective work with jsinterop > and browser-specific api. > For example Fullscreen api is mostly work in latest browsers, but methods > are prefixed. > > Before jsinterop I

Re: GWT 2.8.0 RC2 is here!

2016-09-09 Thread Thomas Broyer
First, you don't *have* to split your project, you have to *run* them separately (but then you'll probably have to tweak the classpath of each a bit). Then, GWT RPC isn't a blocker for splitting your project (see my modular-webapp archetype at https://github.com/tbroyer/gwt-maven-archetypes)

Re: Autocompletion with RPC under the MVP model : how to instanciate Suggestbox(suggestOracle) without refering any service into the view ?

2016-09-09 Thread Eddy
Thank you for your first help Thomas ! What I had tried is to write a get method from the view/display interface, which return the suggestBox object and which I had called from the presenter on the onBind or revealDisplay : => I could redefine as the same the requestSuggestions() into the

Re: Autocompletion with RPC under the MVP model : how to instanciate Suggestbox(suggestOracle) without refering any service into the view ?

2016-09-09 Thread Thomas Broyer
On Friday, September 9, 2016 at 9:31:27 AM UTC+2, Eddy wrote: > > Thank you for your first help Thomas ! > > What I had tried is to write a get method from the view/display interface, > which return the suggestBox object and which I had called from the > presenter on the onBind or

Re: Working polymer example?

2016-09-09 Thread zakaria amine
Hi, you can try gwt-polymer-starter-kit: https://github.com/gwidgets/gwt-polymer-starter-kit it's also available as a maven archetype: https://github.com/gwidgets/gwt-ui-archetypes Le vendredi 9 septembre 2016 04:00:56 UTC+2, Transplant a écrit : > > > I've left this alone in the hopes that

Re: Is GWT is Dead?

2016-09-09 Thread Gourab Panda
Back 2010-2011(approx.) when I was using GWT, there were these discussion(in May) on why GMAIL is reverting back it implementation from GWT to its original implementation. Not sure about the authenticity of those news. Found a link where there is similar discussion about this topic:

chrome 53 styleSheet insertRule not working

2016-09-09 Thread fenyoapa
hi, it is maybe not a gwt issue, but it is in a gwt app. This code snippet worked for years: *$doc.styleSheets[0].insertRule('.aclassname { color:red;}', 0);* but now in chrome 53.0.2785.101 m (64-bit) not work (css rules not applied) It is working in FF/IE too, and worked in chrome 52. -- You

Re: chrome 53 styleSheet insertRule not working

2016-09-09 Thread Thomas Broyer
Works for me (from the devtools console, but still). 53.0.2785.101 (64-bit) on Ubuntu 16.04. On Friday, September 9, 2016 at 11:41:12 AM UTC+2, fenyoapa wrote: > > hi, > it is maybe not a gwt issue, but it is in a gwt app. > This code snippet worked for years: > > >

Re: Is GWT is Dead?

2016-09-09 Thread Gourab Panda
Back 2010-2011(approx.) when I was using GWT, there were these discussion(*in My Team*) on why GMAIL is reverting back it implementation from GWT to its original implementation. Not sure about the authenticity of those news. Found a link where there is similar discussion about this topic:

Re: chrome 53 styleSheet insertRule not working

2016-09-09 Thread fenyoapa
2016. szeptember 9., péntek 11:41:12 UTC+2 időpontban fenyoapa a következőt írta: > > hi, > it is maybe not a gwt issue, but it is in a gwt app. > This code snippet worked for years: > > > *$doc.styleSheets[0].insertRule('.aclassname { color:red;}', 0);* > but now in chrome 53.0.2785.101 m

Re: chrome 53 styleSheet insertRule not working

2016-09-09 Thread fenyoapa

jsinterop with browser-specific api

2016-09-09 Thread Kirill Prazdnikov
Doing the same -- 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

jsinterop with browser-specific api

2016-09-09 Thread Kirill Prazdnikov
But above sample doing the name. Or you can create a baseclss and 3 impl and instantiate the correct one. -- 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

[gwt-contrib] Re: Last call for 2.8.0-RC3

2016-09-09 Thread Arnaud TOURNIER
I have one problem which is recurring, related to JsInterop. Sometimes the JsInterop JS stub is not generated because of (seemingly) an internal error in SuperDevMode (and GWTC it seems), but nothing is logged, so it's difficult to diagnose. For example, in an application (which does not

Re: [gwt-contrib] Re: ScriptInjector seems to be broken (2.8-SNAPSHOT)

2016-09-09 Thread Jens
Ok just tried it myself. Created a new, fresh project having world in my host page using public void onModuleLoad() { Global.window.alert("Element found: " + (Global.document.getElementById( "hello") != null)); } GWT 2.8 RC2 returns true _.onModuleLoad_4_g$ = function onModuleLoad_3_g$(){

Re: [gwt-contrib] Re: ScriptInjector seems to be broken (2.8-SNAPSHOT)

2016-09-09 Thread Thomas Broyer
Can you file an issue and ping Daniel (by mail or hangout) to delay the RC3 a bit? (if not already too late, as it's 4pm cest) On Friday, September 9, 2016 at 3:51:05 PM UTC+2, Jens wrote: > > Ok just tried it myself. > > Created a new, fresh project having world in my > host page using > >

Re: [gwt-contrib] Re: ScriptInjector seems to be broken (2.8-SNAPSHOT)

2016-09-09 Thread 'Daniel Kurka' via GWT Contributors
+Goktug Gokdogan +Roberto Lublinerman Should we be holding RC3, I guess so right? On Fri, Sep 9, 2016 at 4:12 PM Jens wrote: > > Can you file an issue and ping Daniel (by mail or hangout) to delay the > RC3 a bit? (if not

Re: [gwt-contrib] Re: ScriptInjector seems to be broken (2.8-SNAPSHOT)

2016-09-09 Thread David
I'm sure my stuff was working fine with JsInterop 1.0 but with JsInterop 2.0 the only solution seems to be to use Global.top.window.document As far as I remember I had it working somewhere half of July - but I might be wrong. Can I force in maven to take a very specific snapshot version of GWT

Re: [gwt-contrib] Re: ScriptInjector seems to be broken (2.8-SNAPSHOT)

2016-09-09 Thread Jens
> Can you file an issue and ping Daniel (by mail or hangout) to delay the > RC3 a bit? (if not already too late, as it's 4pm cest) > Done. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving

Re: [gwt-contrib] Re: ScriptInjector seems to be broken (2.8-SNAPSHOT)

2016-09-09 Thread Colin Alworth
Another issue at may warrant attention - https://github.com/gwtproject/gwt/issues/9424. This was brought up some time ago, but wasn't reduced to be reproducible until now (which is funny, given how minimal the test case is). On Fri, Sep 9, 2016 at 9:30 AM 'Daniel Kurka' via GWT Contributors <

Re: [gwt-contrib] Re: Last call for 2.8.0-RC3

2016-09-09 Thread 'Roberto Lublinerman' via GWT Contributors
Arnaud, have you tried using -strict? GWT ignores compilation units with errors if they are not explicitly reachable from the entry point. I assume your Toto class is only referenced from JS. So if this class has any compile error (like missing references) then GWT does not see the class, much

Re: [gwt-contrib] Re: ScriptInjector seems to be broken (2.8-SNAPSHOT)

2016-09-09 Thread 'Goktug Gokdogan' via GWT Contributors
We should hold up the release. There is another path around arrays as well. On Fri, Sep 9, 2016 at 8:04 AM, Colin Alworth wrote: > Another issue at may warrant attention - https://github.com/ > gwtproject/gwt/issues/9424. This was brought up some time ago, but wasn't >

[gwt-contrib] Re: Last call for 2.8.0-RC3

2016-09-09 Thread Thomas Broyer
As we've delayed the release a bit, let's add another documentation fix: https://gwt-review.googlesource.com/16860 On Thursday, September 8, 2016 at 4:27:36 PM UTC+2, Daniel Kurka wrote: > > Hi all, > > I will be cutting rc3 tomorrow 1pm CEST, please respond to this email with > any outstanding

[gwt-contrib] Re: CodeServer with Bookmarklets not working in GWT 2.7 (2nd request)

2016-09-09 Thread Thomas Broyer
Doesn't CodeServer accept -setProperty? You could use that to pinpoint the property values so you only have one permutation when only user.agent is given. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and

Re: [gwt-contrib] Re: ScriptInjector seems to be broken (2.8-SNAPSHOT)

2016-09-09 Thread David
This scoping is all very confusing :-). Anyway, this is what I am seeing with Elemental2: - I have an application that generates HTML using a custom templating system. - I then put the HTML string in an Element with setInnerSafeHtml. - After this I use Element2 to bind to the generated html. For

Re: [gwt-contrib] Re: ScriptInjector seems to be broken (2.8-SNAPSHOT)

2016-09-09 Thread Jens
> This scoping is all very confusing :-). > > Anyway, this is what I am seeing with Elemental2: > - I have an application that generates HTML using a custom templating > system. > - I then put the HTML string in an Element with setInnerSafeHtml. > - After this I use Element2 to bind to the

[gwt-contrib] Re: CodeServer with Bookmarklets not working in GWT 2.7 (2nd request)

2016-09-09 Thread Brandon Donnelson
I haven't dug in yet, just wanting to use it. That sounds promising. Using bookmarlets doesn't work when the module is embedded in another iframe. so the next issue I need to deal with is helping detect the module when it's not in the main body but in another iframe of the document. The other