Re: Where can I find a sample for multi-module GWT app built with maven?

2016-11-21 Thread vitrums
Oh well, it seems that I totally overlooked GWT plugin documentation site. 
Thank you, it is exactly what I've been looking for. Perhaps, it's worth to 
add a line such as "For Eclipse IDE users refer to step-by-step 
instructions at 
http://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/maven/Maven.html"; 
in the aforementioned resources. I was so close to give up on everything...

On Monday, November 21, 2016 at 10:33:17 PM UTC+3, Juan Pablo Gardella 
wrote:
>
> Try to install last gwt eclipse plugin first: 
> http://gwt-plugins.github.io/documentation/
>
> Regarding launchers: 
> http://eclipsesnippets.blogspot.com.ar/2007/07/tip-creating-and-sharing-launch.html
> Basically, you have to create them.
>
> Regards,
> Juan
>
>
> On Mon, 21 Nov 2016 at 16:27 vitrums > 
> wrote:
>
>> Sorry, but I'm not sure where I can find these lines. Searched within my 
>> eclipse folder, but no match. Also, it looks like these settings are 
>>  global and may affect all other projects.
>>
>>
>> On Monday, November 21, 2016 at 10:07:38 PM UTC+3, Juan Pablo Gardella 
>> wrote:
>>
>>>
>>> Install GWT eclipse plugin and then use eclipse launchers to start them.
>>>
>>>
>>> *SDM launcher:*
>>>
>>> ...
>>> >> value="com.google.gwt.dev.DevMode"/>
>>> >> value="-war *YOURWRAR *-logLevel INFO -port auto -remoteUI 
>>> "${gwt_remote_ui_server_port}:${unique_id}" -codeServerPort 9997 
>>> *ENTRYPOINTHERE* "/>
>>> ...
>>>
>>>
>>> Server launcher:
>>> (Execute maven goals)
>>>
>>> Regards,
>>> Juan
>>>
>>> On Mon, 21 Nov 2016 at 16:01 vitrums  wrote:
>>>
 Thank you. I tried it before, but I had a syntax error in that line 
 (missed a "-" before a key).

 I wonder now though how to run this sample app within Eclipse with 
 *gwt:devmode* goal on Jetty. Examining the modules with Project 
 Explorer shows, that src/main/webapp is related to **-server* module 
 and therefore, *mvn install* produces the target within this module. 
 Hence, running mvn *gwt:devmode* on the project opens GWT Development 
 Mode window but finds no startup URL:

 [WARN] No startup URLs supplied and no plausible ones found -- 
 use -startupUrl 


 On Monday, November 21, 2016 at 9:16:15 PM UTC+3, Juan Pablo Gardella 
 wrote:

> Did you try?
>
> mvn archetype:generate \
>
> -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/
>  \
>-DarchetypeGroupId=net.ltgt.gwt.archetypes \
>-DarchetypeArtifactId=moduler-webapp \
>-DarchetypeVersion=1.0-SNAPSHOT
>
>
>
> On Mon, 21 Nov 2016 at 14:48 vitrums  wrote:
>
 In the latest GWT 2.8.0 distribution *webAppCreator *tool generates 
 *pom.xml 
>> *for a sample project from 
>> *com\google\gwt\user\tools\templates\maven\pom.xmlsrc* located in 
>> *gwt-user.jar*. The *groupId* for *gwt-maven-plugin* is now set as 
>> *net.ltgt.gwt.maven*. According to 
>> https://tbroyer.github.io/gwt-maven-plugin/index.html this project 
>> disctincts itself from *Mojo's Maven Plugin for GWT* 
>> https://gwt-maven-plugin.github.io/gwt-maven-plugin/index.html. The 
>> provided documentation is very succinct compared to Mojo's; it says 
>> little 
>> if anything about multi-moduling (provides a link at 
>> https://github.com/tbroyer/gwt-maven-archetypes/, which I can't get 
>> my head around... simply how to use it). According to the site the 
>> latest 
>> update was made in Jan, while the Mojo's docs were updated in Oct. of 
>> this 
>> year. And I could find a ready to use example of multi-module GWT app 
>> with 
>> maven at https://github.com/steinsag/gwt-maven-example, which 
>> unfortunately uses *org.codehaus.mojo's gwt-maven-plugin*. May be I 
>> can adapt this solution to use *net.ltgt.gwt.maven *
>> *gwt-maven-plugin *somehow, or what should I do?
>>
>> -- 
>> 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 google-we...@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+unsubscr...@googlegroups.com.
 To post to this group, send email to google-we...@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 messa

Re: GWT Code Splitting: The GWT Stuff and My Core Java Classes

2016-11-21 Thread Jens


> Can someone clarify?
>

Each GWT module that has an EntryPoint defined will end up being a GWT 
application. Each GWT application will contain the code of the GWT SDK that 
you are using in your app, e.g. a GWT Button, Label, LayoutPanels, etc. So 
yes if you have 10 small, independent GWT applications (= 10 entry points) 
and you sum up their final JS size you will end up with a larger total 
download compared to a single GWT application (= 1 entry point) containing 
the modules.

So people generally end up using a single GWT application (entry point) and 
if their app becomes too large they use code splitting so that the app is 
downloaded in smaller chunks on demand. However some people are also fine 
with having 10 GWT applications. Server side GZ compression, client side 
caching and the fact that each of the 10 GWT applications can also use code 
splitting makes the overhead of duplicated GWT SDK code downloads not that 
important. With 10 applications you also get benefits like updating them 
independently from each other.

So again: No you can not have a GWT.js library shared across your GWT 
modules. You either have to create a single GWT application or multiple GWT 
applications. A single GWT application will always be smaller than the same 
application split up into 10 smaller GWT applications because of GWT SDK 
code duplications. Choose whatever fits best for your use case.

-- 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+unsubscr...@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.


GWT 2.8 compile fails; 2.7 works

2016-11-21 Thread jgindin
In our app, we have a UiBinder widget (SomeViewImpl) which has, as its root 
element, a widget which itself is a UiBinder widget 
(CollectionManagementLayout).

My UiBinder declaration in SomeViewImpl looks like this:
interface CollectionManagementPanelUiBinder extends 
UiBinder {}


The UiBinder XML for the SomeViewImpl class starts off like this:
  
. . . 
  



This code compiles just fine in GWT 2.7, but with 2.8, I get the following 
error:

[ERROR] Errors in 
'generated://09CDEAB17C92C8C75AB00C9F2F0DF847/com/myco/myproduct/client/stuff/collections/SomeViewImpl_CollectionManagementPanelUiBinderImpl.java'
  [ERROR] Line 17: The interface UiBinder cannot be implemented more 
than once with different arguments: 
UiBinder and 
UiBinder
  See snapshot: 
/tmp/com.myco.myproduct.client.stuff.collections.SomeViewImpl_CollectionManagementPanelUiBinderImpl3472216513944602205.java
   Tracing compile failure path for type 
'com.myco.myproduct.client.stuff.collections.SomeViewImpl_CollectionManagementPanelUiBinderImpl'
  [ERROR] Errors in 
'generated://09CDEAB17C92C8C75AB00C9F2F0DF847/com/myco/myproduct/client/stuff/collections/SomeViewImpl_CollectionManagementPanelUiBinderImpl.java'
 [ERROR] Line 17: The interface UiBinder cannot be implemented more 
than once with different arguments: 
UiBinder and 
UiBinder



The generated code looks like this:
public class SomeViewImpl_CollectionManagementPanelUiBinderImpl 
  implements UiBinder, 
  SomeViewImpl.CollectionManagementPanelUiBinder {


I worked around this by changing the UiBinder declaration in SomeViewImpl 
to be:
interface CollectionManagementPanelUiBinder extends UiBinder {}


*My question is*: Should this have failed in GWT 2.7? Or is there a bug in 
GWT 2.8?

thanks,

jay

-- 
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 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: Internal GWT 2.8.0 compiler exception

2016-11-21 Thread jgindin
Yes, that was it. lib-gwt-svg was the wrong version.

Thank you for the pointer!

jay


On Wednesday, November 16, 2016 at 9:41:13 AM UTC-8, jgindin wrote:
>
> I'm trying to update my project from GWT 2.7.0 to 2.8.0. However, I'm 
> getting the following error during the GWT compilation.
>
> We're using dagger and guava 20. I've validated that:
>
>- dagger-compiler is *NOT* in the classpath when compiling. (We're 
>using gradle and the "net.ltgt.apt" gradle plugin to use the "apt" 
>configuration (which is where the dagger-compiler dependency is listed).
>- there are no gwt 2.7 artifacts in my classpath
>
>
>
>
>
> Thanks in advance for any help
>
> jay
>

-- 
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 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 Code Splitting: The GWT Stuff and My Core Java Classes

2016-11-21 Thread 'Darko P' via GWT Users
I have reviewed the docs again. And still I am unsure if I have modularized 
the JSInterop / GWT part properly. Why?

as of the example all generic classes are duplicated in the modules. Means 
if my non-modularized code has a size of about 500kByte I am now getting 
nearly the same size for each module.
Let say I need to make 10 modules. In this case my codebase will explode to 
5MByte of size. I cannot imagine that this is the "modularizing" approach 
of JSInterop. So I still assume I am doing something wrong.

Can someone clarify?


Am Montag, 21. November 2016 19:53:38 UTC+1 schrieb Ignacio Baca 
Moreno-Torres:
>
> This is an exaggerated comment, but... you know that nowadays most of the 
> pages uses various MB on each load, for example just opening apple store 
> downloads 2M, just click ipad goes up to 6M. So... em, hehe codespliting a 
> 1MB uncompressed JS (probably around 300k compressed) which is going to be 
> cached forever is not very good place to dedicate your effort ;). Obviously 
> is just an opinion. But the monolithic approach with the pretty nice unused 
> resources purge algorithm of GWT is even better now than 5 years ago (I 
> remark the 'purger' because you cannot purge if you do not compile the 
> whole app at once). And it even support code splitting if you goes up to 
> various MB of JS.
>
>

-- 
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 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: My GWT 2.8 app stopped working with Chrome 54 (timers not working anymore)

2016-11-21 Thread Bruno Salmon
No I just remove all elements under  except the 

Re: Where can I find a sample for multi-module GWT app built with maven?

2016-11-21 Thread Juan Pablo Gardella
Try to install last gwt eclipse plugin first:
http://gwt-plugins.github.io/documentation/

Regarding launchers:
http://eclipsesnippets.blogspot.com.ar/2007/07/tip-creating-and-sharing-launch.html
Basically, you have to create them.

Regards,
Juan


On Mon, 21 Nov 2016 at 16:27 vitrums  wrote:

> Sorry, but I'm not sure where I can find these lines. Searched within my
> eclipse folder, but no match. Also, it looks like these settings are
>  global and may affect all other projects.
>
>
> On Monday, November 21, 2016 at 10:07:38 PM UTC+3, Juan Pablo Gardella
> wrote:
>
>
> Install GWT eclipse plugin and then use eclipse launchers to start them.
>
>
> *SDM launcher:*
>
> ...
>  value="com.google.gwt.dev.DevMode"/>
>  value="-war *YOURWRAR *-logLevel INFO -port auto -remoteUI
> "${gwt_remote_ui_server_port}:${unique_id}" -codeServerPort 9997
> *ENTRYPOINTHERE* "/>
> ...
>
>
> Server launcher:
> (Execute maven goals)
>
> Regards,
> Juan
>
> On Mon, 21 Nov 2016 at 16:01 vitrums  wrote:
>
> Thank you. I tried it before, but I had a syntax error in that line
> (missed a "-" before a key).
>
> I wonder now though how to run this sample app within Eclipse with
> *gwt:devmode* goal on Jetty. Examining the modules with Project Explorer
> shows, that src/main/webapp is related to **-server* module and
> therefore, *mvn install* produces the target within this module. Hence,
> running mvn *gwt:devmode* on the project opens GWT Development Mode
> window but finds no startup URL:
>
> [WARN] No startup URLs supplied and no plausible ones found -- use
> -startupUrl
>
>
> On Monday, November 21, 2016 at 9:16:15 PM UTC+3, Juan Pablo Gardella
> wrote:
>
> Did you try?
>
> mvn archetype:generate \
>
> -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ \
>-DarchetypeGroupId=net.ltgt.gwt.archetypes \
>-DarchetypeArtifactId=moduler-webapp \
>-DarchetypeVersion=1.0-SNAPSHOT
>
>
>
> On Mon, 21 Nov 2016 at 14:48 vitrums  wrote:
>
> In the latest GWT 2.8.0 distribution *webAppCreator *tool generates *pom.xml
> *for a sample project from
> *com\google\gwt\user\tools\templates\maven\pom.xmlsrc* located in
> *gwt-user.jar*. The *groupId* for *gwt-maven-plugin* is now set as
> *net.ltgt.gwt.maven*. According to
> https://tbroyer.github.io/gwt-maven-plugin/index.html this project
> disctincts itself from *Mojo's Maven Plugin for GWT*
> https://gwt-maven-plugin.github.io/gwt-maven-plugin/index.html. The
> provided documentation is very succinct compared to Mojo's; it says little
> if anything about multi-moduling (provides a link at
> https://github.com/tbroyer/gwt-maven-archetypes/, which I can't get my
> head around... simply how to use it). According to the site the latest
> update was made in Jan, while the Mojo's docs were updated in Oct. of this
> year. And I could find a ready to use example of multi-module GWT app with
> maven at https://github.com/steinsag/gwt-maven-example, which
> unfortunately uses *org.codehaus.mojo's gwt-maven-plugin*. May be I can
> adapt this solution to use *net.ltgt.gwt.maven **gwt-maven-plugin *somehow,
> or what should I do?
>
> --
> 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 google-we...@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+unsubscr...@googlegroups.com.
> To post to this group, send email to google-we...@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+unsubscr...@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+unsubscr...@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: Where can I find a sample for multi-module GWT app built with maven?

2016-11-21 Thread vitrums
Sorry, but I'm not sure where I can find these lines. Searched within my 
eclipse folder, but no match. Also, it looks like these settings are 
 global and may affect all other projects.

On Monday, November 21, 2016 at 10:07:38 PM UTC+3, Juan Pablo Gardella 
wrote:
>
>
> Install GWT eclipse plugin and then use eclipse launchers to start them.
>
>
> *SDM launcher:*
>
> ...
>  value="com.google.gwt.dev.DevMode"/>
>  value="-war *YOURWRAR *-logLevel INFO -port auto -remoteUI 
> "${gwt_remote_ui_server_port}:${unique_id}" -codeServerPort 9997 
> *ENTRYPOINTHERE* "/>
> ...
>
>
> Server launcher:
> (Execute maven goals)
>
> Regards,
> Juan
>
> On Mon, 21 Nov 2016 at 16:01 vitrums > 
> wrote:
>
>> Thank you. I tried it before, but I had a syntax error in that line 
>> (missed a "-" before a key).
>>
>> I wonder now though how to run this sample app within Eclipse with 
>> *gwt:devmode* goal on Jetty. Examining the modules with Project Explorer 
>> shows, that src/main/webapp is related to **-server* module and 
>> therefore, *mvn install* produces the target within this module. Hence, 
>> running mvn *gwt:devmode* on the project opens GWT Development Mode 
>> window but finds no startup URL:
>>
>> [WARN] No startup URLs supplied and no plausible ones found -- 
>> use -startupUrl 
>>
>>
>> On Monday, November 21, 2016 at 9:16:15 PM UTC+3, Juan Pablo Gardella 
>> wrote:
>>
>>> Did you try?
>>>
>>> mvn archetype:generate \
>>>
>>> -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ 
>>> \
>>>-DarchetypeGroupId=net.ltgt.gwt.archetypes \
>>>-DarchetypeArtifactId=moduler-webapp \
>>>-DarchetypeVersion=1.0-SNAPSHOT
>>>
>>>
>>>
>>> On Mon, 21 Nov 2016 at 14:48 vitrums  wrote:
>>>
>> In the latest GWT 2.8.0 distribution *webAppCreator *tool generates *pom.xml 
 *for a sample project from 
 *com\google\gwt\user\tools\templates\maven\pom.xmlsrc* located in 
 *gwt-user.jar*. The *groupId* for *gwt-maven-plugin* is now set as 
 *net.ltgt.gwt.maven*. According to 
 https://tbroyer.github.io/gwt-maven-plugin/index.html this project 
 disctincts itself from *Mojo's Maven Plugin for GWT* 
 https://gwt-maven-plugin.github.io/gwt-maven-plugin/index.html. The 
 provided documentation is very succinct compared to Mojo's; it says little 
 if anything about multi-moduling (provides a link at 
 https://github.com/tbroyer/gwt-maven-archetypes/, which I can't get my 
 head around... simply how to use it). According to the site the latest 
 update was made in Jan, while the Mojo's docs were updated in Oct. of this 
 year. And I could find a ready to use example of multi-module GWT app with 
 maven at https://github.com/steinsag/gwt-maven-example, which 
 unfortunately uses *org.codehaus.mojo's gwt-maven-plugin*. May be I 
 can adapt this solution to use *net.ltgt.gwt.maven **gwt-maven-plugin 
 *somehow, 
 or what should I do?

 -- 
 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 google-we...@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+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@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+unsubscr...@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: Where can I find a sample for multi-module GWT app built with maven?

2016-11-21 Thread Juan Pablo Gardella
Install GWT eclipse plugin and then use eclipse launchers to start them.


*SDM launcher:*

...


...


Server launcher:
(Execute maven goals)

Regards,
Juan

On Mon, 21 Nov 2016 at 16:01 vitrums  wrote:

> Thank you. I tried it before, but I had a syntax error in that line
> (missed a "-" before a key).
>
> I wonder now though how to run this sample app within Eclipse with
> *gwt:devmode* goal on Jetty. Examining the modules with Project Explorer
> shows, that src/main/webapp is related to **-server* module and
> therefore, *mvn install* produces the target within this module. Hence,
> running mvn *gwt:devmode* on the project opens GWT Development Mode
> window but finds no startup URL:
>
> [WARN] No startup URLs supplied and no plausible ones found -- use
> -startupUrl
>
>
> On Monday, November 21, 2016 at 9:16:15 PM UTC+3, Juan Pablo Gardella
> wrote:
>
> Did you try?
>
> mvn archetype:generate \
>
> -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ \
>-DarchetypeGroupId=net.ltgt.gwt.archetypes \
>-DarchetypeArtifactId=moduler-webapp \
>-DarchetypeVersion=1.0-SNAPSHOT
>
>
>
> On Mon, 21 Nov 2016 at 14:48 vitrums  wrote:
>
> In the latest GWT 2.8.0 distribution *webAppCreator *tool generates *pom.xml
> *for a sample project from
> *com\google\gwt\user\tools\templates\maven\pom.xmlsrc* located in
> *gwt-user.jar*. The *groupId* for *gwt-maven-plugin* is now set as
> *net.ltgt.gwt.maven*. According to
> https://tbroyer.github.io/gwt-maven-plugin/index.html this project
> disctincts itself from *Mojo's Maven Plugin for GWT*
> https://gwt-maven-plugin.github.io/gwt-maven-plugin/index.html. The
> provided documentation is very succinct compared to Mojo's; it says little
> if anything about multi-moduling (provides a link at
> https://github.com/tbroyer/gwt-maven-archetypes/, which I can't get my
> head around... simply how to use it). According to the site the latest
> update was made in Jan, while the Mojo's docs were updated in Oct. of this
> year. And I could find a ready to use example of multi-module GWT app with
> maven at https://github.com/steinsag/gwt-maven-example, which
> unfortunately uses *org.codehaus.mojo's gwt-maven-plugin*. May be I can
> adapt this solution to use *net.ltgt.gwt.maven **gwt-maven-plugin *somehow,
> or what should I do?
>
> --
> 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 google-we...@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+unsubscr...@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+unsubscr...@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: My GWT 2.8 app stopped working with Chrome 54 (timers not working anymore)

2016-11-21 Thread Max Fromberger
So You re-add the script tags?

Am Montag, 21. November 2016 12:27:33 UTC+1 schrieb Bruno Salmon:
>
> I found the problem, so I'm sharing the result of my investigation as this 
> may help other people facing a similar issue with Chrome 54+ or other 
> webkit based browsers:
>
> My app replaces the document  (which initially contains a splash 
> screen) with the application root element once loaded and initialized. This 
> replacement removed all previous elements under the  tag which were 
> actually not only the splash screen but also the  tags (this was 
> considered a best practice to put them here - not sure if this is still the 
> case with http2).
>
> Anyway removing the scripts tags once the application was loaded in memory 
> didn't cause any problem up to Chrome 54 and the application could continue 
> working as the scripts were already resident in memory.
>
> But from Chrome 54 this is not the case anymore: it seems removing the 
> script elements now immediately removes the resident application from the 
> memory as well.
>
> This is what caused my app stop working and even my timers programmed in 
> the initialization step were finally not called after the scripts tags have 
> been removed...
>
>
> On Thursday, 27 October 2016 13:17:35 UTC+2, Bruno Salmon wrote:
>>
>> hi,
>>
>> My Chrome updated yesterday from version 53 to 54 and this made my GWT 
>> 2.8 app stop working.
>>
>> There is no error message in the console but after some investigation, I 
>> noticed that the problem come from the timers which are not called anymore 
>> (whatever the method: GWT Timer / Elemental2 / JSNI). It's like 
>> setTimeout() doesn't work anymore in the browser (and this is what freezes 
>> my app).
>>
>> However if I write a simple GWT 2.8 app whose code is just a timer 
>> invocation, it works in Chrome 54...
>>
>> The timers stop working only when I invoke my application logic (a quite 
>> big app). So it looks like something breaks the timers in the compiled 
>> javascript code, but I don't know how to investigate further (as the whole 
>> application logic run without error).
>>
>> My app works fine in FireFox.
>>
>> Any idea what's happening?
>>
>>

-- 
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 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: Where can I find a sample for multi-module GWT app built with maven?

2016-11-21 Thread vitrums
Thank you. I tried it before, but I had a syntax error in that line (missed 
a "-" before a key).

I wonder now though how to run this sample app within Eclipse with 
*gwt:devmode* goal on Jetty. Examining the modules with Project Explorer 
shows, that src/main/webapp is related to **-server* module and therefore, *mvn 
install* produces the target within this module. Hence, running mvn 
*gwt:devmode* on the project opens GWT Development Mode window but finds no 
startup URL:

[WARN] No startup URLs supplied and no plausible ones found -- use 
-startupUrl 

On Monday, November 21, 2016 at 9:16:15 PM UTC+3, Juan Pablo Gardella wrote:
>
> Did you try?
>
> mvn archetype:generate \
>
> -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ \
>-DarchetypeGroupId=net.ltgt.gwt.archetypes \
>-DarchetypeArtifactId=moduler-webapp \
>-DarchetypeVersion=1.0-SNAPSHOT
>
>
>
> On Mon, 21 Nov 2016 at 14:48 vitrums > 
> wrote:
>
>> In the latest GWT 2.8.0 distribution *webAppCreator *tool generates *pom.xml 
>> *for a sample project from 
>> *com\google\gwt\user\tools\templates\maven\pom.xmlsrc* located in 
>> *gwt-user.jar*. The *groupId* for *gwt-maven-plugin* is now set as 
>> *net.ltgt.gwt.maven*. According to 
>> https://tbroyer.github.io/gwt-maven-plugin/index.html this project 
>> disctincts itself from *Mojo's Maven Plugin for GWT* 
>> https://gwt-maven-plugin.github.io/gwt-maven-plugin/index.html. The 
>> provided documentation is very succinct compared to Mojo's; it says little 
>> if anything about multi-moduling (provides a link at 
>> https://github.com/tbroyer/gwt-maven-archetypes/, which I can't get my 
>> head around... simply how to use it). According to the site the latest 
>> update was made in Jan, while the Mojo's docs were updated in Oct. of this 
>> year. And I could find a ready to use example of multi-module GWT app with 
>> maven at https://github.com/steinsag/gwt-maven-example, which 
>> unfortunately uses *org.codehaus.mojo's gwt-maven-plugin*. May be I can 
>> adapt this solution to use *net.ltgt.gwt.maven **gwt-maven-plugin *somehow, 
>> or what should I do?
>>
>> -- 
>> 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 google-we...@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+unsubscr...@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 Code Splitting: The GWT Stuff and My Core Java Classes

2016-11-21 Thread Ignacio Baca Moreno-Torres
This is an exaggerated comment, but... you know that nowadays most of the 
pages uses various MB on each load, for example just opening apple store 
downloads 2M, just click ipad goes up to 6M. So... em, hehe codespliting a 
1MB uncompressed JS (probably around 300k compressed) which is going to be 
cached forever is not very good place to dedicate your effort ;). Obviously 
is just an opinion. But the monolithic approach with the pretty nice unused 
resources purge algorithm of GWT is even better now than 5 years ago (I 
remark the 'purger' because you cannot purge if you do not compile the 
whole app at once). And it even support code splitting if you goes up to 
various MB of JS.

On Friday, November 4, 2016 at 11:20:31 AM UTC+1, Ramesh S wrote:
>
> Hi, 
>
> I am looking for some help on GWT code splitting. 
>
> I have a very basic gwt - maven project, which have a few model classes 
> (Shape, Circle, Square, etc).
> and I use *demo.html* to load the generated *.nocahce.js*. 
> to pass the inputs and do some computation and get the result back.
>
> Here the *nocache.js* contains the whole java script of the GWT stuff 
> also my java classes converted to javascript. 
>
> Is it possible to have separate java script file for my java classes. ?
>
> Thanks
>
>
>

-- 
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 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: Where can I find a sample for multi-module GWT app built with maven?

2016-11-21 Thread vitrums
Sure, I ran

mvn archetype:generate 
DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ 
DarchetypeGroupId=net.ltgt.gwt.archetypes 
DarchetypeArtifactId=modular-webapp DarchetypeVersion=1.0-SNAPSHOT

and got

[INFO] Scanning for projects...
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Total time: 0.070 s
[INFO] Finished at: 2016-11-21T21:23:14+03:00
[INFO] Final Memory: 5M/123M
[INFO] 

[ERROR] The goal you specified requires a project to execute but there is 
no POM in this directory (c:\temp\mvnGwtTestProjects). Please verify you 
invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException


On Monday, November 21, 2016 at 9:16:15 PM UTC+3, Juan Pablo Gardella wrote:
>
> Did you try?
>
> mvn archetype:generate \
>
> -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ \
>-DarchetypeGroupId=net.ltgt.gwt.archetypes \
>-DarchetypeArtifactId=moduler-webapp \
>-DarchetypeVersion=1.0-SNAPSHOT
>
>
>
> On Mon, 21 Nov 2016 at 14:48 vitrums > 
> wrote:
>
>> In the latest GWT 2.8.0 distribution *webAppCreator *tool generates *pom.xml 
>> *for a sample project from 
>> *com\google\gwt\user\tools\templates\maven\pom.xmlsrc* located in 
>> *gwt-user.jar*. The *groupId* for *gwt-maven-plugin* is now set as 
>> *net.ltgt.gwt.maven*. According to 
>> https://tbroyer.github.io/gwt-maven-plugin/index.html this project 
>> disctincts itself from *Mojo's Maven Plugin for GWT* 
>> https://gwt-maven-plugin.github.io/gwt-maven-plugin/index.html. The 
>> provided documentation is very succinct compared to Mojo's; it says little 
>> if anything about multi-moduling (provides a link at 
>> https://github.com/tbroyer/gwt-maven-archetypes/, which I can't get my 
>> head around... simply how to use it). According to the site the latest 
>> update was made in Jan, while the Mojo's docs were updated in Oct. of this 
>> year. And I could find a ready to use example of multi-module GWT app with 
>> maven at https://github.com/steinsag/gwt-maven-example, which 
>> unfortunately uses *org.codehaus.mojo's gwt-maven-plugin*. May be I can 
>> adapt this solution to use *net.ltgt.gwt.maven **gwt-maven-plugin *somehow, 
>> or what should I do?
>>
>> -- 
>> 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 google-we...@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+unsubscr...@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: Where can I find a sample for multi-module GWT app built with maven?

2016-11-21 Thread vitrums
Sure, I ran

mvn archetype:generate 
DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ 
DarchetypeGroupId=net.ltgt.gwt.archetypes 
DarchetypeArtifactId=modular-webapp DarchetypeVersion=1.0-SNAPSHOT


and got


On Monday, November 21, 2016 at 9:16:15 PM UTC+3, Juan Pablo Gardella wrote:
>
> Did you try?
>
> mvn archetype:generate \
>
> -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ \
>-DarchetypeGroupId=net.ltgt.gwt.archetypes \
>-DarchetypeArtifactId=moduler-webapp \
>-DarchetypeVersion=1.0-SNAPSHOT
>
>
>
> On Mon, 21 Nov 2016 at 14:48 vitrums > 
> wrote:
>
>> In the latest GWT 2.8.0 distribution *webAppCreator *tool generates *pom.xml 
>> *for a sample project from 
>> *com\google\gwt\user\tools\templates\maven\pom.xmlsrc* located in 
>> *gwt-user.jar*. The *groupId* for *gwt-maven-plugin* is now set as 
>> *net.ltgt.gwt.maven*. According to 
>> https://tbroyer.github.io/gwt-maven-plugin/index.html this project 
>> disctincts itself from *Mojo's Maven Plugin for GWT* 
>> https://gwt-maven-plugin.github.io/gwt-maven-plugin/index.html. The 
>> provided documentation is very succinct compared to Mojo's; it says little 
>> if anything about multi-moduling (provides a link at 
>> https://github.com/tbroyer/gwt-maven-archetypes/, which I can't get my 
>> head around... simply how to use it). According to the site the latest 
>> update was made in Jan, while the Mojo's docs were updated in Oct. of this 
>> year. And I could find a ready to use example of multi-module GWT app with 
>> maven at https://github.com/steinsag/gwt-maven-example, which 
>> unfortunately uses *org.codehaus.mojo's gwt-maven-plugin*. May be I can 
>> adapt this solution to use *net.ltgt.gwt.maven **gwt-maven-plugin *somehow, 
>> or what should I do?
>>
>> -- 
>> 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 google-we...@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+unsubscr...@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: Where can I find a sample for multi-module GWT app built with maven?

2016-11-21 Thread Juan Pablo Gardella
Did you try?

mvn archetype:generate \
   -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ \
   -DarchetypeGroupId=net.ltgt.gwt.archetypes \
   -DarchetypeArtifactId=moduler-webapp \
   -DarchetypeVersion=1.0-SNAPSHOT



On Mon, 21 Nov 2016 at 14:48 vitrums  wrote:

> In the latest GWT 2.8.0 distribution *webAppCreator *tool generates *pom.xml
> *for a sample project from
> *com\google\gwt\user\tools\templates\maven\pom.xmlsrc* located in
> *gwt-user.jar*. The *groupId* for *gwt-maven-plugin* is now set as
> *net.ltgt.gwt.maven*. According to
> https://tbroyer.github.io/gwt-maven-plugin/index.html this project
> disctincts itself from *Mojo's Maven Plugin for GWT*
> https://gwt-maven-plugin.github.io/gwt-maven-plugin/index.html. The
> provided documentation is very succinct compared to Mojo's; it says little
> if anything about multi-moduling (provides a link at
> https://github.com/tbroyer/gwt-maven-archetypes/, which I can't get my
> head around... simply how to use it). According to the site the latest
> update was made in Jan, while the Mojo's docs were updated in Oct. of this
> year. And I could find a ready to use example of multi-module GWT app with
> maven at https://github.com/steinsag/gwt-maven-example, which
> unfortunately uses *org.codehaus.mojo's gwt-maven-plugin*. May be I can
> adapt this solution to use *net.ltgt.gwt.maven **gwt-maven-plugin *somehow,
> or what should I do?
>
> --
> 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 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+unsubscr...@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.


Where can I find a sample for multi-module GWT app built with maven?

2016-11-21 Thread vitrums
In the latest GWT 2.8.0 distribution *webAppCreator *tool generates *pom.xml 
*for a sample project from 
*com\google\gwt\user\tools\templates\maven\pom.xmlsrc* located in 
*gwt-user.jar*. The *groupId* for *gwt-maven-plugin* is now set as 
*net.ltgt.gwt.maven*. According to 
https://tbroyer.github.io/gwt-maven-plugin/index.html this project 
disctincts itself from *Mojo's Maven Plugin for GWT* 
https://gwt-maven-plugin.github.io/gwt-maven-plugin/index.html. The 
provided documentation is very succinct compared to Mojo's; it says little 
if anything about multi-moduling (provides a link at 
https://github.com/tbroyer/gwt-maven-archetypes/, which I can't get my head 
around... simply how to use it). According to the site the latest update 
was made in Jan, while the Mojo's docs were updated in Oct. of this year. 
And I could find a ready to use example of multi-module GWT app with maven 
at https://github.com/steinsag/gwt-maven-example, which unfortunately uses 
*org.codehaus.mojo's gwt-maven-plugin*. May be I can adapt this solution to 
use *net.ltgt.gwt.maven **gwt-maven-plugin *somehow, or what should I do?

-- 
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 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: My GWT 2.8 app stopped working with Chrome 54 (timers not working anymore)

2016-11-21 Thread Bruno Salmon
I found the problem, so I'm sharing the result of my investigation as this 
may help other people facing a similar issue with Chrome 54+ or other 
webkit based browsers:

My app replaces the document  (which initially contains a splash 
screen) with the application root element once loaded and initialized. This 
replacement removed all previous elements under the  tag which were 
actually not only the splash screen but also the  tags (this was 
considered a best practice to put them here - not sure if this is still the 
case with http2).

Anyway removing the scripts tags once the application was loaded in memory 
didn't cause any problem up to Chrome 54 and the application could continue 
working as the scripts were already resident in memory.

But from Chrome 54 this is not the case anymore: it seems removing the 
script elements now immediately removes the resident application from the 
memory as well.

This is what caused my app stop working and even my timers programmed in 
the initialization step were finally not called after the scripts tags have 
been removed...


On Thursday, 27 October 2016 13:17:35 UTC+2, Bruno Salmon wrote:
>
> hi,
>
> My Chrome updated yesterday from version 53 to 54 and this made my GWT 2.8 
> app stop working.
>
> There is no error message in the console but after some investigation, I 
> noticed that the problem come from the timers which are not called anymore 
> (whatever the method: GWT Timer / Elemental2 / JSNI). It's like 
> setTimeout() doesn't work anymore in the browser (and this is what freezes 
> my app).
>
> However if I write a simple GWT 2.8 app whose code is just a timer 
> invocation, it works in Chrome 54...
>
> The timers stop working only when I invoke my application logic (a quite 
> big app). So it looks like something breaks the timers in the compiled 
> javascript code, but I don't know how to investigate further (as the whole 
> application logic run without error).
>
> My app works fine in FireFox.
>
> Any idea what's happening?
>
>

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


GWT Polymer : The icons are not appearing in the UI

2016-11-21 Thread Dhinakar Reddy Pothireddi
Hi,

I tried to use the GWT Polymer and I am getting the UI with no icons.
This is my code
public void onModuleLoad() {

PaperButton button = new PaperButton("Press me!");
button.setRaised(true);
IronIcon icon = new IronIcon();
*icon.setIcon("menu");*
button.add(icon);
button.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
// TODO Auto-generated method stub
Window.alert("Hello");
}
});
RootPanel.get().add(button);
}



I also tried few other widgets and they are also not showing up any icons. 
Did I miss something? Please help me. 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+unsubscr...@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.