Friday, September 28, 2018

Re: New Gradle plugin for GWT available

great! I am using putnami gradle plugin.

Please see my patch to work with embedded tomcat server in Eclipse IDE
https://groups.google.com/forum/#!searchin/Google-Web-Toolkit/putnami%7Csort:date/google-web-toolkit/QPw1YbUdCM4/E2Dj-rjNBAAJ

вторник, 18 сентября 2018 г., 12:00:06 UTC+4 пользователь esoco GmbH написал:
Because both existing Gradle plugins for GWT are no longer maintained I forked the most recent of these (previously known as putnami-gradle-plugin) and released the most recent code with a few improvements. The new plugin also supports the current GWT Eclipse plugin so that it can be used together with the Gradle eclipse plugin. The new plugin is available on GitHub:


The most recent version is 1.0.2, released yesterday. Although the names are identical the new plugin should not be confused with the older and even longer unmaintained gwt-gradle-plugin by Steffen Schaefer on GitHub. The configuration syntax is inherited from the more recent Putnami plugin, only have the plugin and task names been changed to the more appropriate gwt. Please check the GitHub page for details.

Feedback and contributions are welcome.

--
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.

Saturday, September 22, 2018

Re: New Gradle plugin for GWT available

Good to hear, I will give it a try!

--
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.

Friday, September 21, 2018

Re: New Gradle plugin for GWT available

Which isn't in my inbox.

On 09/20/2018 12:02 PM, esoco GmbH wrote:
See first post in this thread.

Am Donnerstag, 20. September 2018 16:08:07 UTC+2 schrieb Michael Joyner:
Which plugin?

Thursday, September 20, 2018

Re: New Gradle plugin for GWT available

See first post in this thread.

Am Donnerstag, 20. September 2018 16:08:07 UTC+2 schrieb Michael Joyner:
Which plugin?

--
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.

Re: GWT Plugin 3.0 fails to download connection reset after a while

I'm looking into it. 

On Wed, Sep 19, 2018 at 7:12 AM Rahul Maharishi <rahul.maharishi@gmail.com> wrote:

This link is again not working.
http://storage.googleapis.com/gwt-eclipse-plugin/v3/release

Has it moved, can you please share the correct link.


Downloading from browser would work, can you please share the link.


On Monday, 26 February 2018 22:53:37 UTC+5:30, Brandon Donnelson wrote:
@Kommon If you try what Jens tried, downloading from the browser would it work for you? 

Are you dropping packets on your nic? 

On Monday, February 26, 2018 at 6:58:26 AM UTC-8, Jens wrote:

I can download that jar without issues using a browser. Maybe it is some virus scanner or proxy causing the issue.

-- J. 

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/UtSote8Oc18/unsubscribe.
To unsubscribe from this group and all its topics, 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.

--
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.

Re: New Gradle plugin for GWT available

Which plugin?

On 09/20/2018 04:05 AM, esoco GmbH wrote:
Yes, I'm using the plugin (that was the main reason for forking it) and are also still using GWT. It's difficult to tell about the long run but given the mature and stable Java environment I still see GWT as a good solution to create web applications, especially ones that need to be maintained for some time. Not everything in the software business is "fire and forget" :-)
--
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.

Re: New Gradle plugin for GWT available

Yes, I'm using the plugin (that was the main reason for forking it) and are also still using GWT. It's difficult to tell about the long run but given the mature and stable Java environment I still see GWT as a good solution to create web applications, especially ones that need to be maintained for some time. Not everything in the software business is "fire and forget" :-)

--
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.

Wednesday, September 19, 2018

New Gradle plugin for GWT available

Are you using this plugin yourself and do you plan on developing with GWT in the long run?

The other plugins were abondended becuase their authors moved on.

Congrats!

--
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.

Tuesday, September 18, 2018

Re: GWT Plugin 3.0 fails to download connection reset after a while


This link is again not working.
http://storage.googleapis.com/gwt-eclipse-plugin/v3/release

Has it moved, can you please share the correct link.


Downloading from browser would work, can you please share the link.

On Monday, 26 February 2018 22:53:37 UTC+5:30, Brandon Donnelson wrote:
@Kommon If you try what Jens tried, downloading from the browser would it work for you? 

Are you dropping packets on your nic? 

On Monday, February 26, 2018 at 6:58:26 AM UTC-8, Jens wrote:

I can download that jar without issues using a browser. Maybe it is some virus scanner or proxy causing the issue.

-- J. 

--
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.

Re: Should I use GWT or anything else for my Web App

You can start from the gitter channels, both libs has a very active channels

also joining the GWT channel is recommended

On Tuesday, September 18, 2018 at 12:18:09 PM UTC+3, Snahasish Ghosh wrote:

Thank you all for your valuable time.

I am also a java developer with 5+ experience and have experienced with GWT (upto 2.7.0 + SmartGWT 3.1). Personally I like GWT as it work differently. I am a great fan of compilation process and defered binding algo use by GWT.

But recently angular has gain a position in web application technologies. 
That is why I am little bit confused what I use.

I have no experience with Domini-ui and Vue-Gwt. Can anyone please explain.

Thanks

On Monday, September 17, 2018 at 1:11:42 PM UTC, Snahasish Ghosh wrote:
Hi All

Good morning to all.

I need some help/advice from all of you regarding the uses of GWT in my my web application.

I am little bit confuse regarding uses of GWT or Angular in my application. 

Which should I use ?

Which will be better in terms of UI, security/ back end connectivity .... everything

Thanks in advance.


--
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.

Re: Should I use GWT or anything else for my Web App


Thank you all for your valuable time.

I am also a java developer with 5+ experience and have experienced with GWT (upto 2.7.0 + SmartGWT 3.1). Personally I like GWT as it work differently. I am a great fan of compilation process and defered binding algo use by GWT.

But recently angular has gain a position in web application technologies. 
That is why I am little bit confused what I use.

I have no experience with Domini-ui and Vue-Gwt. Can anyone please explain.

Thanks

On Monday, September 17, 2018 at 1:11:42 PM UTC, Snahasish Ghosh wrote:
Hi All

Good morning to all.

I need some help/advice from all of you regarding the uses of GWT in my my web application.

I am little bit confuse regarding uses of GWT or Angular in my application. 

Which should I use ?

Which will be better in terms of UI, security/ back end connectivity .... everything

Thanks in advance.


--
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.

New Gradle plugin for GWT available

Because both existing Gradle plugins for GWT are no longer maintained I forked the most recent of these (previously known as putnami-gradle-plugin) and released the most recent code with a few improvements. The new plugin also supports the current GWT Eclipse plugin so that it can be used together with the Gradle eclipse plugin. The new plugin is available on GitHub:


The most recent version is 1.0.2, released yesterday. Although the names are identical the new plugin should not be confused with the older and even longer unmaintained gwt-gradle-plugin by Steffen Schaefer on GitHub. The configuration syntax is inherited from the more recent Putnami plugin, only have the plugin and task names been changed to the more appropriate gwt. Please check the GitHub page for details.

Feedback and contributions are welcome.

--
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.

Monday, September 17, 2018

Re: First I heard of "Domino UI"

I did some coding with Domino-UI for some examples (testing my framework). It is awesome. Looks nice and offers a lot of widgets. For my next project it would  be my first choice. The folks from Domino UI make a good job. Support is great and I get always help.

But keep in mind, Domnino UI is still in progress. So, there might be some chances before the final release.

I read some things about vue-gwt, but did not use it. So, I am not able to tell you, which one is better. 

Am Montag, 17. September 2018 16:26:45 UTC+2 schrieb Michael Joyner:
First I heard of "Domino UI".

Any one out there with experience with it?

regarding UI there is now good libs for GWT if you are looking for material design: for example
Domino-ui : type safe UI libs based on elemental2 and elemento with material design and has no dependency on external JS.
Vue-Gwt :  GWT wrapper over Vue.js

both are targeting GWT 3.0



--
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.

First I heard of "Domino UI"

There is a gitter channel if you wish you can ask there
https://gitter.im/domino-gwt/domino-ui

--
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.

First I heard of "Domino UI"

First I heard of "Domino UI".

Any one out there with experience with it?

regarding UI there is now good libs for GWT if you are looking for material design: for example
Domino-ui : type safe UI libs based on elemental2 and elemento with material design and has no dependency on external JS.
Vue-Gwt :  GWT wrapper over Vue.js

both are targeting GWT 3.0



Re: Should I use GWT or anything else for my Web App

For me i use GWT because i am a Java developer with 10+ years of experience and i think that i need to build up something close to this experience in JS before i can say i can produce the same results and being as productive.

Also one of the things that i like the most about GWT is ability to continuously refactor my code using powerful IDE like Intellij or eclipse. 
sharing the code between client and server is also another aspect to look at.

GWT with elemental2 nowadays is super powerful, and MDN documentation helps a lot and makes you think in JS while writing Type Safe java code.

regarding UI there is now good libs for GWT if you are looking for material design: for example
Domino-ui : type safe UI libs based on elemental2 and elemento with material design and has no dependency on external JS.
Vue-Gwt :  GWT wrapper over Vue.js

both are targeting GWT 3.0


On Monday, September 17, 2018 at 4:11:42 PM UTC+3, Snahasish Ghosh wrote:
Hi All

Good morning to all.

I need some help/advice from all of you regarding the uses of GWT in my my web application.

I am little bit confuse regarding uses of GWT or Angular in my application. 

Which should I use ?

Which will be better in terms of UI, security/ back end connectivity .... everything

Thanks in advance.


--
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.

Should I use GWT or anything else for my Web App

Hi All

Good morning to all.

I need some help/advice from all of you regarding the uses of GWT in my my web application.

I am little bit confuse regarding uses of GWT or Angular in my application. 

Which should I use ?

Which will be better in terms of UI, security/ back end connectivity .... everything

Thanks in advance.


--
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.

Saturday, September 15, 2018

Re: Deferred Binding - Help!

Matthew,
what you describe sounds like the Turducken. Have a look at:
https://www.slideshare.net/RobertKeane1/turducken-divide-and-conquer-large-gwt-apps-with-multiple-teams and
https://www.slideshare.net/gwtcon/diy-split-gwt-applications-using-turducken-approach-by-alberto-mancini

I vaguely remember Google Wave was done in GWT and had a plugin system: http://incubator.apache.org/projects/wave.html


On Friday, 14 September 2018 09:10:03 UTC-4, Matthew Bergshoeff wrote:
 Hi Everyone - I've been searching everywhere for a solution to this and haven't been able to resolve it. I don't think I've properly wrapped my head around the issue, so hoping someone could provide some guidance.

I am trying to build a modular GWT application - by that I mean that there will be the core application, but it should support the addition of gwt modules ("plugins") without having to rebuild. This is being accomplished by updating parameters in the web.xml so that I can just stop the webapp, add a .jar file to the /lib directory, define the new .jar in the web.xml and restart the application. So far so good. The problem arises when trying to initialize/access the classes within the plugins.

Let's imagine I had a PetStore application (classic example!). I have an interface called Pet that is implemented by some classic examples (Cat, Dog, Fish) in the core application. However, I want to be able to add a plugin for an exotic pet (Borneo Pygmy Elephant), and have the application (client-side) be able to load the class when a record comes up that refers to it. I am able to do this server-side using a URLClassLoader, but can't figure out how to use a Generator to instantiate all possible Pet implementations within a module.

If I am going to implement a generator, should it be in the plugin or in the core application? I've found a few examples, but none seem to pinpoint exactly what I'm trying to do. Appreciate any help...

--
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.

Friday, September 14, 2018

Re: GWT into Spring Boot with remember-me is not working


I have also integrated GWT-SL but that not helped me to solve the issue ( here the link of this project in github https://github.com/ggeorgovassilis/gwt-sl )

--
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.

Re: Why the GWT complier used so much memory?

Good to know, I'm using Mojo's maven plugin, so that would explain the default of localWorkers = 4. 

On Friday, September 14, 2018 at 10:05:23 AM UTC-3, Thomas Broyer wrote:


On Friday, September 14, 2018 at 2:25:44 PM UTC+2, Andrew Somerville wrote:
To your point, regarding tuning the localWorkers parameter, I get significant speedup going from the default of 4 localWorkers down to 2. (i5-4460 Desktop CPU, 500 GB SSD and 32 GB of RAM). It doesn't matter what I set the heap limit to, the compilation appears to be memory bandwidth limited, or perhaps GC bandwidth limited. 

Note that from GWT's side the default for localWorkers actually is 1, it's the gwt-maven-plugin(s) that use the number of CPUs of the machine as the default value (and always pass an explicit -localWorkers parameter to GWT)

--
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.

Re: addWindowClosingHandler only working in IE

Indeed Thomas.

Only IE seems to be showing the message (together with its own message).

--
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.

Re: Deferred Binding - Help!

Hi

As far has I know (I might be wrong), the generators are executed during the compilation of the web app. So I think you can't do that without recompiling you app.

If you recompile your app, with all your plugins in your classpath, you can implement a generator that will scan for Pet implementations and instanciate a given class for exemple.

Ex (generated code):
public Pet newPet(Class<? extends Pet> clazz) {
    if (clazz.getName().equals("pet.Cat") return new pet.Cat();
    if (clazz.getName().equals("pet.Dog") return new pet.Dog();
    return null;
}

Le ven. 14 sept. 2018 à 15:09, Matthew Bergshoeff <matthew.bergshoeff@gmail.com> a écrit :
 Hi Everyone - I've been searching everywhere for a solution to this and haven't been able to resolve it. I don't think I've properly wrapped my head around the issue, so hoping someone could provide some guidance.

I am trying to build a modular GWT application - by that I mean that there will be the core application, but it should support the addition of gwt modules ("plugins") without having to rebuild. This is being accomplished by updating parameters in the web.xml so that I can just stop the webapp, add a .jar file to the /lib directory, define the new .jar in the web.xml and restart the application. So far so good. The problem arises when trying to initialize/access the classes within the plugins.

Let's imagine I had a PetStore application (classic example!). I have an interface called Pet that is implemented by some classic examples (Cat, Dog, Fish) in the core application. However, I want to be able to add a plugin for an exotic pet (Borneo Pygmy Elephant), and have the application (client-side) be able to load the class when a record comes up that refers to it. I am able to do this server-side using a URLClassLoader, but can't figure out how to use a Generator to instantiate all possible Pet implementations within a module.

If I am going to implement a generator, should it be in the plugin or in the core application? I've found a few examples, but none seem to pinpoint exactly what I'm trying to do. Appreciate any help...

--
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.

--
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.

Re: Deferred Binding - Help!


On Friday, September 14, 2018 at 3:10:03 PM UTC+2, Matthew Bergshoeff wrote:
 Hi Everyone - I've been searching everywhere for a solution to this and haven't been able to resolve it. I don't think I've properly wrapped my head around the issue, so hoping someone could provide some guidance.

I am trying to build a modular GWT application - by that I mean that there will be the core application, but it should support the addition of gwt modules ("plugins") without having to rebuild. This is being accomplished by updating parameters in the web.xml so that I can just stop the webapp, add a .jar file to the /lib directory, define the new .jar in the web.xml and restart the application. So far so good. The problem arises when trying to initialize/access the classes within the plugins.

Let's imagine I had a PetStore application (classic example!). I have an interface called Pet that is implemented by some classic examples (Cat, Dog, Fish) in the core application. However, I want to be able to add a plugin for an exotic pet (Borneo Pygmy Elephant), and have the application (client-side) be able to load the class when a record comes up that refers to it. I am able to do this server-side using a URLClassLoader, but can't figure out how to use a Generator to instantiate all possible Pet implementations within a module.

If I am going to implement a generator, should it be in the plugin or in the core application? I've found a few examples, but none seem to pinpoint exactly what I'm trying to do. Appreciate any help...

What you're doing is put several totally distinct apps on a single page, and making them talk to each other.
Because they are totally distinct apps, their "initially-Java classes" are produced as different JS objects, obfuscated separately, etc.

Solutions:
 * think in terms of JS, not Java, and make the apps actually talk to each other (e.g. plugin "registers" into core); use JsInterop.
 * make a single app with GWT.runAsync() to split the payload, and configuration to enable/disable some code branches such that some GWT.runAsync() are never reached.

--
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.

Re: Why the GWT complier used so much memory?



On Friday, September 14, 2018 at 2:25:44 PM UTC+2, Andrew Somerville wrote:
To your point, regarding tuning the localWorkers parameter, I get significant speedup going from the default of 4 localWorkers down to 2. (i5-4460 Desktop CPU, 500 GB SSD and 32 GB of RAM). It doesn't matter what I set the heap limit to, the compilation appears to be memory bandwidth limited, or perhaps GC bandwidth limited. 

Note that from GWT's side the default for localWorkers actually is 1, it's the gwt-maven-plugin(s) that use the number of CPUs of the machine as the default value (and always pass an explicit -localWorkers parameter to GWT)

--
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.

Deferred Binding - Help!

 Hi Everyone - I've been searching everywhere for a solution to this and haven't been able to resolve it. I don't think I've properly wrapped my head around the issue, so hoping someone could provide some guidance.

I am trying to build a modular GWT application - by that I mean that there will be the core application, but it should support the addition of gwt modules ("plugins") without having to rebuild. This is being accomplished by updating parameters in the web.xml so that I can just stop the webapp, add a .jar file to the /lib directory, define the new .jar in the web.xml and restart the application. So far so good. The problem arises when trying to initialize/access the classes within the plugins.

Let's imagine I had a PetStore application (classic example!). I have an interface called Pet that is implemented by some classic examples (Cat, Dog, Fish) in the core application. However, I want to be able to add a plugin for an exotic pet (Borneo Pygmy Elephant), and have the application (client-side) be able to load the class when a record comes up that refers to it. I am able to do this server-side using a URLClassLoader, but can't figure out how to use a Generator to instantiate all possible Pet implementations within a module.

If I am going to implement a generator, should it be in the plugin or in the core application? I've found a few examples, but none seem to pinpoint exactly what I'm trying to do. Appreciate any help...

--
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.

Re: addWindowClosingHandler only working in IE

Note that the actual message will be ignored by more and more browsers, which will only display a generic popup whenever the message is non-null (or not empty).

On Friday, September 14, 2018 at 11:03:39 AM UTC+2, Frank wrote:
Okay....

Now I figured out how this works. You need to set a message to the event.
Didn't figured this out reading the javadoc.


Window.addWindowClosingHandler(event ->
{
if (Grid.hasUnsavedEdits()) event.setMessage(I18NMessages.getMessage(5107));
});

--
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.

Re: Why the GWT complier used so much memory?

To your point, regarding tuning the localWorkers parameter, I get significant speedup going from the default of 4 localWorkers down to 2. (i5-4460 Desktop CPU, 500 GB SSD and 32 GB of RAM). It doesn't matter what I set the heap limit to, the compilation appears to be memory bandwidth limited, or perhaps GC bandwidth limited. 

My times are roughly 300 s for 4 workers, 90 s for 2 and 100 s for 1. When compiling with 4 local workers, my system will lock up for a second here and there during compilation, the mouse will freeze, other applications will jitter. The system-wide jitter strongly suggests memory bandwidth saturation and poor cache performance on the part of the GWT compiler. I get no jitter with 2 localWorkers. 

My project code base is about 250 k lines, about 1/3-1/2 of that is front end GWT code. 

On Sunday, September 9, 2018 at 1:15:54 PM UTC-3, Jens wrote:

Are there someone working on the optimization of the GWT compiler, it is too slow for us

No. 

You can use -localWorkers parameter to adjust how many permutations should be compiled in parallel. The higher the number the more memory is needed. If you use -localWorkers 1 then permutations are compiled one after the other which requires the least amount of memory. You can also use -Xmx JVM parameter to limit the amount of heap used, although this might result in more garbage collects and thus longer compile times.

The only other option is to split a large app into smaller apps.

-- J.

--
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.

Re: addWindowClosingHandler only working in IE

Okay....

Now I figured out how this works. You need to set a message to the event.
Didn't figured this out reading the javadoc.


Window.addWindowClosingHandler(event ->
{
if (Grid.hasUnsavedEdits()) event.setMessage(I18NMessages.getMessage(5107));
});

--
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.

Re: addWindowClosingHandler only working in IE

I am thinking the problem is in this below code.
But I have not idea how fix this...





Code is from com.google.gwt.user.client.Window

/**
 * Adds a {@link ResizeEvent} handler.
*
* @param handler the handler
* @return returns the handler registration
*/
public static HandlerRegistration addResizeHandler(ResizeHandler handler) {
maybeInitializeCloseHandlers();
maybeInitializeResizeHandlers();
return addHandler(ResizeEvent.getType(), handler);
}

private static void maybeInitializeCloseHandlers() {
if (GWT.isClient() && !closeHandlersInitialized) {
impl.initWindowCloseHandler();
closeHandlersInitialized = true;
}
} I also add a bunch of Window resize handlers. And in addResizeHandler for some reason maybeInitializeCloseHandlers() is called. Now when adding a closehandler closeHandlerInitialized is true.... And thus the close handler is not added....

--
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.

addWindowClosingHandler only working in IE

GWT 2.8.2

In below code neither of the Window.alerts gets triggered in Chrome, FF and Edge.
This does not work neither while in SuperDevMode, or when fully compiled and deployed.

Only works in IE



The "go" alert is displayed by all browsers so I am sure the code was executed...


Any ideas anyone ?
Should I detect browser closing/tab closing/navigating to another URL in another way in these other browsers ?

I also tried using the deprecated Window.addWindowCloseListener. This actually does work in Edge (while the new handlers don't work in Edge). But not in Chrome and FF.



Window.addWindowClosingHandler(event ->
{
Window.alert("onWindowClosing");
});

Window.addCloseHandler(new CloseHandler<Window>()
{
@Override public void onClose(CloseEvent<Window> event)
{
Window.alert("onWindowClosed");
}
});

Window.alert("go");




--
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.

Thursday, September 13, 2018

GWT into Spring Boot with remember-me is not working

Hi

I have an application based in Spring Boot and the latest GWT 2.8.2. In the application I have some protected resources one with GWT and others with standard Servlets and JSP pages.
Now I have included remember-me feature, the remember-me feature is working with all the protected resources except with GWT section what fails

My GWT Servlets extends RemoteServiceServlet

It is raising this error:
org.springframework.security.web.authentication.rememberme.CookieTheftException: Invalid remember-me token (Series/token) mismatch. Implies previous cookie theft attack.
    at org.springframework.security.web.authentication.rememberme.PersistentTokenBasedRememberMeServices.processAutoLoginCookie(PersistentTokenBasedRememberMeServices.java:120)

I have debug the internal spring security class PersistentTokenBasedRememberMeServices and the error it is raised because the initial tokenValue for some reason is changed in the middle:

@Override
    protected UserDetails processAutoLoginCookie(String[] cookieTokens,
            HttpServletRequest request, HttpServletResponse response) {

        if (cookieTokens.length != 2) {
            throw new InvalidCookieException("Cookie token did not contain " + 2
                    + " tokens, but contained '" + Arrays.asList(cookieTokens) + "'");
        }

        final String presentedSeries = cookieTokens[0];
        final String presentedToken = cookieTokens[1];

        PersistentRememberMeToken token = tokenRepository
                .getTokenForSeries(presentedSeries);

        if (token == null) {
            // No series match, so we can't authenticate using this cookie
            throw new RememberMeAuthenticationException(
                    "No persistent token found for series id: " + presentedSeries);
        }

        // We have a match for this user/series combination
        if (!presentedToken.equals(token.getTokenValue())) {
            // Token doesn't match series value. Delete all logins for this user and throw
            // an exception to warn them.
            tokenRepository.removeUserTokens(token.getUsername());

            throw new CookieTheftException(
                    messages.getMessage(
                            "PersistentTokenBasedRememberMeServices.cookieStolen",
                            "Invalid remember-me token (Series/token) mismatch. Implies previous cookie theft attack."));
        }




--
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.

Snailmail: The Martha Stewart of Addiction

Slow Ventures Snailmail

 Snailmail: The Martha Stewart of Addiction


Thursday, September 13, 2018

Welcome back to Slow Snailmail. Hope y'all had a great summer! Got this forwarded and want to subscribe? Go to: http://slow.claims
👩‍💻 Q+A: Holly Whitaker and Will Quist

This week we are psyched to feature an Q+A from the Founder & CEO of Hip Sobriety, Holly Whitaker and Slow Partner, Will Quist. Hip Sobriety is a Slow portfolio company rebranding addiction through an 8-week program that combines community and mentorship to help people meet and accomplish their unique goals.

WQ: What are you building?

HW: I'm building a consumer branded, digital recovery. Almost like a modern version of Alcoholics Anonymous -- that is the easy reference but what we are building is truly the opposite. It's bottom up approach to help people engage and change their relationship with alcohol in an aspirational and empowering way.

WQ: Why does AA need to be reinvented?

HW: I don't think AA needs to be reinvented. I think it works perfectly for people that are at a specific point and have a specific profile. AA was built in the 1940s by two white men who thought they were God and has remained virtually unchanged since. The archetype it was created for is not representative of the experience women and other marginalized people face when confronting addiction or their relationship with substances. Further, it's aimed at end spectrum addiction, and 90% of people who struggle with alcohol aren't on that part of the spectrum. So: I don't think AA needs to be reinvented, I just think there needs to be other ways to face addiction and substance abuse.

Furter, AA specifically asks you to identify yourself as having a disease, and then it tells you that you will have this disease for the rest of your life and that you need to quit drinking. That rhetoric and fundamentalism doesn't meet people exactly where they are at and it keeps people out unless they are absolutely desperate. I doubt most people reading this who struggle with their drinking are willing to go to AA because it is such a huge, huge step.

WQ: Why have you taken it upon yourself to fix this problem? I assume it must occupy all almost all your waking and non-waking hours?

HW: I believe this is my reason for being and yeah it occupies almost every minute of my waking life. I have personally struggled hard with alcohol and drug addiction as well as eating disorders and other behavioral addictions. I had a terrible experience getting sober, a lonely experience that I pieced together with scraps from different modalities. Nothing on the market spoke to me, and I knew from very early on that I would spend the rest of my life trying to fix what was broken for me.

WQ: At first glance, why would someone with a personal brand, who has been able to build a following, have a mission that is proper for venture capital?

HW: First, I am pretty sure that personal brands are just starting to get traction as scalable consumer brands - think of Girlboss and that one Kardashian who is now worth a billion.

For me, it was always a matter of asking how can I affect the most change.

I could have gone on my pretty, little path and continued to help 450 to 500 people a year, but instead we are close serving that many people a month. VC means I can serve more people, increase the scope of services provided, and provide better services. It's the difference between having a lifestyle business and having a business that can change millions of lives.

I didn't start this just to have a personal brand and to become the fucking Martha Stewart of addiction, which was in my first venture capital pitch in 2014. I knew that I wanted to build an incredible ethical business whose purpose was not to make money. That is why we have been successful. I have never been about the money, we have never been about the money. It is only and always about being in service and fixing something that is desperately broken.

HW: I have a question for you, Will. As someone who isn't sober, why would you invest in a company that is geared towards sobriety?

WQ: Well it is astounding amount of our population that needs to reexamine their relationship with alcohol. But on a personal level, the first time we discussed this, I was like, wow, this is a thing for me too! I have already gotten there as a parent, understanding the consequences of having people who rely on me increasingly more as I get older. Alcohol does not need to be stripped out of our lives but I think every person in a developed country who has met enough of Maslow's hierarchy has to deal with problems like this and should be thinking about it.

-----------------

Learn more about Hip Sobriety and Holly's mission here! Or sign up for their new online magazine, The Temper!

📚 Essential Reads from Sam

  • If you have a spare hour, read our partner, Sam Lessin's 9,000 word opus on The Information on How The Internet Broke and the three options we have going forward to deal with the direct tension between freedom of speech and security in our frictionless digital world. 

  • If you want something shorter from Sam, you can also pick up a copy of his new children's book, B is for Bitcoin. It is a lovingly written and illustrated A-Z primer from Algorithm to Zero knowledge for ages 0-99! All proceeds go to early childhood education non-profits.

🤔 Short Thoughts and Novelties

Want moar? Check us out on:
Facebook, Twitter, Medium or our Website

Signup for Snailmail Newsletters at  http://slow.claims
Our mailing address is:
1006 Kearny St, San Francisco, CA 94133

Don't Want These Emails?
unsubscribe from this list
 

Donate BTC: 3BJW4B6GGpoQrjeom6RpVtkza3XPw2qjoK
Donate ETH: 0xD7599b3D15805aDF3144676914964e8fff53C925