Re: JsInterop Question regarding execution in index.html

2017-02-13 Thread Jens
> Thanks that worked! Given that this flag was off by default, what are the > main ramifications of leaving it on? > The flag is not active by default because your project might depend on GWT libraries that are also published as pure JS libraries by exporting the GWT code to JS using JsInter

Re: Which maven archetype for GWT applications?

2017-02-13 Thread Magnus
Hi Thomas, I would not choose the build tool depending on wether eclipse is or is not able to show it's structure correctly. It seems that the "modular webapp" project structure is hierarchical with three subfolders. Using Juan's advice, I can see this structure also in eclipse now. So everythi

Re: Which maven archetype for GWT applications?

2017-02-13 Thread Magnus
Hi Juan! It's only enabled in Project explorer view (in package explorer view > doesn't work) > You're totally right! I didn't use the project explorer view before, but it shows the hierarchical structure of the project! This seems to be a solution for me. Thanks! Magnus -- You received th

Re: JsInterop Question regarding execution in index.html

2017-02-13 Thread Paul Mazzuca
Thanks that worked! Given that this flag was off by default, what are the main ramifications of leaving it on? . The below code is successfully exported globally when the flag is on: @JsMethod(namespace = JsPackage.GLOBAL, name = "handleOpenUrl") public static void runMe(String url) {

Re: Which maven archetype for GWT applications?

2017-02-13 Thread Thomas Broyer
On Monday, February 13, 2017 at 6:15:15 PM UTC+1, Magnus wrote: > > Hi Juan, > > thanks, but my package presentation is already set to "hierarchical". > I would be glad if I could fix this with an eclipse setting... > Maven doesn't allow you to use different classpaths for different subsets of

Re: Which maven archetype for GWT applications?

2017-02-13 Thread Juan Pablo Gardella
It's only enabled in Project explorer view (in package explorer view doesn't work) [image: pasted1] On Mon, 13 Feb 2017 at 14:15 Magnus wrote: > Hi Juan, > > thanks, but my package presentation is already set to "hierarchical". > I would be glad if I could fix this with an eclipse setting... >

Re: Which maven archetype for GWT applications?

2017-02-13 Thread Magnus
Hi Juan, thanks, but my package presentation is already set to "hierarchical". I would be glad if I could fix this with an eclipse setting... Magnus -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving

Re: JsInterop Question regarding execution in index.html

2017-02-13 Thread Juan Pablo Gardella
Check if this flag is activated -[no]generateJsInteropExports Generate exports for JsInterop purposes (defaults to OFF) On Mon, 13 Feb 2017 at 14:01 Paul Mazzuca wrote: > Thanks for the quick reply. This was my first inclination, which does not > work. > > @JsMethod(namespace = JsPackage.GLOB

Re: JsInterop Question regarding execution in index.html

2017-02-13 Thread Paul Mazzuca
Thanks for the quick reply. This was my first inclination, which does not work. @JsMethod(namespace = JsPackage.GLOBAL, name = "handleOpenUrl") public void runMe(String url) { Window.alert("Success"); } Perhaps, I am doing it wrong, but I had always thought the JsInterop wraps existing

Re: JsInterop Question regarding execution in index.html

2017-02-13 Thread Juan Pablo Gardella
You can use jsinterop . On Mon, 13 Feb 2017 at 13:24 Paul Mazzuca wrote: > I need to create a javascript function called "handleOpenUrl(url)" that > will be called from a Cordova plugin

JsInterop Question regarding execution in index.html

2017-02-13 Thread Paul Mazzuca
I need to create a javascript function called "handleOpenUrl(url)" that will be called from a Cordova plugin (https://github.com/EddyVerbruggen/Custom-URL-scheme) for a hand off from a mobile browser. If I create the function inside my index.html, it is called successfully. The challenge is h

Re: Which maven archetype for GWT applications?

2017-02-13 Thread Magnus
Hello Freddy! Splitting your server / shared / client code in different module will make > your life easier if you do it at the beginning of your project. > I am sure you are right. But why is this hierarchical arrangement (which is also hierarchical at the file system) presented as 4 top-level

Re: Which maven archetype for GWT applications?

2017-02-13 Thread Ignacio Baca Moreno-Torres
For client side only and lib only project (so only one module) you can see an example here: https://github.com/tbroyer/gwt-maven-plugin/tree/master/src/it Quite simple, maybe adding this use cases as archetype is a good idea, but IMO it's so simple that using the simple maven archetype and adding t

Re: Which maven archetype for GWT applications?

2017-02-13 Thread David
There is an alternative, like they do in guava for example. They have a pure java guava.jar and then create a guava-gwt.jar that includes the sources, supersources and fieldserializers for gwt projects. This requires that you use annotations like GwtCompatible or GwtIncompatible and filter the sour

Re: Which maven archetype for GWT applications?

2017-02-13 Thread Freddy Boucher
The recommended GWT Archetypes nowadays is one of https://github.com/tbroyer/gwt-maven-archetypes It uses https://github.com/tbroyer/gwt-maven-plugin And why you should use one of them: Splitting your server / shared / client code in different module will make your life easier if you do it at