Thursday, June 30, 2016

Re: Questions about how the GWT obfuscation process works

On Thursday, June 30, 2016 at 11:36:19 AM UTC+2, Jens wrote:
GWT first optimizes the Java AST, then converts it into a JavaScript AST and optimizes it as well. Once that is done the actual obfuscation is just a simple renaming as far as I know.

Once the optimization (aka tree-shaking; includes inlining, deadcode pruning, etc.) is done, code is also reorganized so it'll compress better with gzip ("sorts functions by size and clusters them by edit distance"); and obfuscation allocates obfuscated identifiers "in the original order of their declaration, which produces a lot more common substrings in the obfuscated output which significantly improves gzip/deflate compression."
(quotes come from commit messages)

Thanks for the link - this is really interesting reading.
 
Also, up to GWT 2.7, there was an experimental flag to use Closure Compiler for the JS AST optimisation and obfuscation (it has been removed for GWT 2.8), which would use different algorithms and produce different results.

 Was the flag removed in preparation for J2CL?

--
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: Questions about how the GWT obfuscation process works

GWT first optimizes the Java AST, then converts it into a JavaScript AST and optimizes it as well.

I had a sneaking suspicion the obfuscation might not be working off human-readable JS. Neat.
 

Once that is done the actual obfuscation is just a simple renaming as far as I know.

Ah, right.
 

Its also kind of worthless doing such a compression as you have mentioned because that is exactly what GZIP compression does when activated on your web server.

I was wondering whether it made that much of a difference with gzip configured. As Thomas Broyer noted, GWT reorganizes the code so it fits better into gzip's sliding window and gets compressed more readily.

As an aside, I recently learned just how much gzip makes a difference: http://jvns.ca/blog/2013/10/24/day-16-gzip-plus-poetry-equals-awesome/
 

The obfuscation is not a standalone tool so you can not run it against any JS library.

Duly noted.

 
In the future it is likely that GWT use a different compiler called J2CL (in development inside Google) which takes the Java code and directly converts it to ES6 JavaScript classes in a way that they are really good understandable by Google Closure Compiler.

Interesting! Thanks for the headsup!

 
Then JS optimization + minification will be done by Google Closure Compiler which you can of course use for any JS library as well.

I just had a look at the Closure Compiler web service and fed it some JS I was recently golfing. To quote, it "Saved -68.96% off the gzipped size (-107.55% without gzip)", although in all fairness it did give me some possible ideas for saving a few bytes.
 

So the minification/obfuscation you are seeing today in GWT will likely change in the future.

 I see. I'll keep an eye out for the changes! :)

--
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: Questions about how the GWT obfuscation process works



On Thursday, June 30, 2016 at 11:36:19 AM UTC+2, Jens wrote:
GWT first optimizes the Java AST, then converts it into a JavaScript AST and optimizes it as well. Once that is done the actual obfuscation is just a simple renaming as far as I know.

Once the optimization (aka tree-shaking; includes inlining, deadcode pruning, etc.) is done, code is also reorganized so it'll compress better with gzip ("sorts functions by size and clusters them by edit distance"); and obfuscation allocates obfuscated identifiers "in the original order of their declaration, which produces a lot more common substrings in the obfuscated output which significantly improves gzip/deflate compression."
(quotes come from commit messages)
See https://timepedia.blogspot.fr/2009/08/on-reducing-size-of-compressed.html about reorganization.

Also, up to GWT 2.7, there was an experimental flag to use Closure Compiler for the JS AST optimisation and obfuscation (it has been removed for GWT 2.8), which would use different algorithms and produce different results.

--
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: Questions about how the GWT obfuscation process works

GWT first optimizes the Java AST, then converts it into a JavaScript AST and optimizes it as well. Once that is done the actual obfuscation is just a simple renaming as far as I know. Its also kind of worthless doing such a compression as you have mentioned because that is exactly what GZIP compression does when activated on your web server. 

The obfuscation is not a standalone tool so you can not run it against any JS library.

In the future it is likely that GWT use a different compiler called J2CL (in development inside Google) which takes the Java code and directly converts it to ES6 JavaScript classes in a way that they are really good understandable by Google Closure Compiler. Then JS optimization + minification will be done by Google Closure Compiler which you can of course use for any JS library as well. So the minification/obfuscation you are seeing today in GWT will likely change in the future.

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

Wednesday, June 29, 2016

Questions about how the GWT obfuscation process works

I've been vaguely aware of GWT and what it does for a few years, but learning Java is still on my todo list so I haven't yet explored GWT in too much depth.

While recently poking around in my browser devtools as I tried to figure out how a particular webapp worked I noticed some obfuscated cache files, and after a bit of digging and research I learned this was because the code was GWT-generated.

My curiosity to figure out what I was looking at was motivated by the obvious obfuscation I could see, particularly the fact that the obfuscation process appears to be compressing the JavaScript in question - if I'm not mistaken, it looks like it's identifying similar code snippets and placing them in common functions. Is this what's happening? It'd be a very interesting technique from a bandwidth-saving perspective.

Even if the obfuscation engine doesn't compress as a side effect, the result certainly seems much harder to read and follow to me than the output of the various other JS minifiers out there, and as such, the obfuscation component is very appealing to me on its own.

Is it possible to point the GWT obfuscator at my own JavaScript and have it obfuscate that, or does it only work on GWT-generated code?

- David Lindsay

PS. As an aside, I'm very curious why so many of the functions I see are empty. Is there a reason for this? Why can't eg 527 empty functions (with no arguments) be turned into 1? Are they being used as objects?

--
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 material and uibinder

Ok... I finally found my error... 
Here is what I have done :

in my myButton2.java code : 
public class myButton2 extends Composite {

private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);

@UiTemplate("myButton2.ui.xml")
interface MyUiBinder extends UiBinder<Widget, myButton2> {
}
public myButton2() {
initWidget(uiBinder.createAndBindUi(this));
}
}

And in my "main" I simply did that : 
RootPanel.get("stockList").add(new HelloWorld());

All is fine now, exept one thing ! :D (Yeah... nothing can directly be perfect !)
My wave effect when I'm clicking on the button don't show up. 
My waves attribute is still there in my .ui.xml like that :
<m:MaterialButton text="Button" waves="DEFAULT" backgroundColor="white" textColor="black" />


--
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 material and uibinder

I didn't mentionned : 
I follow this get Started : http://gwtmaterialdesign.github.io/gwt-material-demo/snapshot/#!gettingstarted
So I added well the "<inherits name="gwt.material.design.GwtMaterialWithJQuery" />" in my app.gwt.xml.

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

gwt material and uibinder

Hello. 
I'm totally new on gwt and I would like to use gwt material to make my application's UI.

I'm not really confortable with maven, so I downloaded the .jar and imported it in my project. I can so use the component like that :
MaterialButton myButton1 = new MaterialButton();
myButton1.setTextColor("white");
myButton1.setText("myButton1");
myButton1.setType(ButtonType.RAISED);
myButton1.setWaves(WavesType.DEFAULT);

RootPanel.get("divContainer").add(myButton1);

My button is shown in my page and it is perfect. 
But I would like to do the same with uiBinder cause it's a lot more confortable to develop a huge application in my opinion ! 

So I created a myButton2.ui.xml file with this : 
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
    xmlns:g='urn:import:com.google.gwt.user.client.ui'
    xmlns:m="urn:import:gwt.material.design.client.ui">

    <m:MaterialButton text="myButton2" waves="DEFAULT" backgroundColor="white" textColor="black"/>

</ui:UiBinder>

And the respective class : 
package com.google.gwt.sample.testGwtMaterial.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class myButton2 extends Composite {

interface MyUiBinder extends UiBinder<Widget, HelloWorld> {
}

private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);

        public myButton2() {
        }
}

But when I change my RootPanel.add thing to :
myButton2 fooBtn = new myButton2();
RootPanel.get("divContainer").add(fooBtn);

There is nothing printed in my page. What I did wrong ?
Thanks for tips !

--
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: How to debug GWT application on Eclipse

I was always using the un-intuitive CTRL-P in Chrome, Firefox, and Opera. CTRL-O is more logical.
First I right clicked on the application and selected "Inspect Element" then did the CTRL-P or CTRL-O.

On Friday, June 24, 2016 at 7:08:40 AM UTC-4, Frank wrote:
Didn't now about that CTRL+O thing.
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+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: Adding Java modules as dependencies in GWT Maven project with plugin 2.7.0


Hi Team,

Can anyone help me on this.

Thanks
Sai


On Saturday, June 25, 2016 at 11:51:28 AM UTC+5:30, Sai Manoj Athota wrote:
If possible can you post an example.

Thanks
Sai

On Saturday, June 25, 2016 at 11:40:28 AM UTC+5:30, Sai Manoj Athota wrote:
Hi J,

Thanks for the quick reply. Still I am not able to build my project. Can you please have a look at my code as below,

<dependency>
<groupId>com.ex</groupId>
<artifactId>ccmscommon</artifactId>
<version>0.0.1-SNAPSHOT</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>com.ex</groupId>
<artifactId>ccmscommon</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

Where ccmscommon is the common project.

com/ccmscommon.gwt.xml

<?xml version="1.0" encoding="UTF-8"?>
<module>
    <source path="ex" />
</module>

i kept ccmscommon.gwt.xml in package com.

I am inheriting the ccmscommon module in ccms.gwt.xml as below,

<inherits name="com.ccmscommon" />

If you need more information, Please let me know.

Kindly help me to resolve this. Thanks in advance.

Thanks
Sai

On Friday, June 24, 2016 at 7:12:46 PM UTC+5:30, Jens wrote:
GWT also needs source files so you need to add a second dependency to the source artifact using <classifier>sources</classifier>.

You also need a GWT module for your common project and inherit it in your 2nd project's GWT module. Otherwise GWT compiler will not see the code of your common project. The common.gwt.xml file does not have to be bundled in the common artifact, it just needs to be on classpath (e.g. you can place it into your 2nd project's source/resource directory)

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

Adding Java modules as dependencies in GWT Maven project with plugin 2.7.0

Hi Team,

We have 3 maven projects where the 2 are pure java module called "ccmscommon" and "projectscheduling" which are used by some other pure java maven projects also.
And the 3rd is Gwt maven module. I want to include the 1st 2 modules in gwt module as maven dependency.  Can you please provide the steps to do it. I tried as below,

Included 1st 2 projects as dependency in 2nd project's pom as below,

<dependency>
<groupid>com.ex<groupid>
<artifactid>ccmscommon</artifactid>
<version>0.0.1-SNAPSHOT</version>
</dependency>

<dependency>
<groupid>com.ex<groupid>
<artifactid>projectscheduling</artifactid>
<version>0.0.1-SNAPSHOT</version>
</dependency>

But getting the error as below,

 No source code is available for type com.ex.Example did you forget to inherit a required module?

Where com.ex.Example is the Java class from 1st maven module.

Kindly assist me to achieve this. 

Thanks
Sai

--
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, June 28, 2016

Re: GWT: CheckBoxCell and Selection change event

Hi 

I am facing same problem. Can you tell me what is problem in model level.

On Friday, 11 May 2012 15:34:49 UTC+5:30, Qrunk wrote:
Hi Thomas,

Thanks for the reply. Actually we were trying the same thing what you had mentioned, but a piece of code missing at model level which was causing the problem.


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

GWT test case failing in dev mode due to UnableToComplete exception

It most probably comes from super-sources in one if your dependencies.

The way to debug it is to set a breakpoint in CompilingClassLoader, line 1142, conditionally breaking when the package name / fully qualified class name starts with "java.", to be able to see what exact class is the culprit; then search for that class' sources in your dependencies.

And the workaround (proper way?) is to run your tests in web/prod mode.

--
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 test case failing in dev mode due to UnableToComplete exception

There's no superdevmode for tests (yet?)

--
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, June 27, 2016

Re: GWT test case failing in dev mode due to UnableToComplete exception

Have you tried super-dev-mode ?

On Monday, June 27, 2016 at 5:42:59 PM UTC+3, ved...@ainosoft.com wrote:
 I have created GWT test case in my project, I am using GWT 2.7. When I try to run the test case in Dev mode I am getting following exception,

    [ERROR] Unable to initialize static dispatcher
    java.lang.SecurityException: Prohibited package name: java.util
    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:659)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:758)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
    at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1142)
    at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1215)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
    at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1142)
    at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1215)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:344)
    at com.google.gwt.dev.shell.JsValueGlue.set(JsValueGlue.java:220)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:130)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:589)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:315)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:359)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:530)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
    at java.lang.Thread.run(Thread.java:745)
    [ERROR] Failed to load module 'org.appops.ui.UiJUnit.JUnit' from user agent 'HtmlUnit-Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0' at localhost:36784
    com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:363)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:530)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
    at java.lang.Thread.run(Thread.java:745)

Even if I don't have any custom package with that name.
Can anyone please suggest me what could be an issue?


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

GWT test case failing in dev mode due to UnableToComplete exception

 I have created GWT test case in my project, I am using GWT 2.7. When I try to run the test case in Dev mode I am getting following exception,

    [ERROR] Unable to initialize static dispatcher
    java.lang.SecurityException: Prohibited package name: java.util
    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:659)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:758)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
    at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1142)
    at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1215)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
    at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1142)
    at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1215)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:344)
    at com.google.gwt.dev.shell.JsValueGlue.set(JsValueGlue.java:220)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:130)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:589)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:315)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:359)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:530)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
    at java.lang.Thread.run(Thread.java:745)
    [ERROR] Failed to load module 'org.appops.ui.UiJUnit.JUnit' from user agent 'HtmlUnit-Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0' at localhost:36784
    com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:363)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:530)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
    at java.lang.Thread.run(Thread.java:745)

Even if I don't have any custom package with that name.
Can anyone please suggest me what could be an issue?


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

Sunday, June 26, 2016

Re: GWT Super dev mode not detecting changes in inherited modules

i cant get this to work, i used the archtype modular-webapp to create a new application, and i was able to to run the application using super dev mode as instructed in the github page, every thing so far worked as expected, i changed something in the entry point of the client module entry point and the changes were applied after i refresh the browser as super dev mode compiled the changes.

then i wanted to add a new module i have implemented and installed into my local maven repo, this module is a simple GWT jar with sources attached and gwt.xml file, so i added the pom dependency for this module and added the inheritence in client module gwt.xml file, my module worked perfectly so far.

then i made some changes to my own module and when i am done i run mvn clean install over my module to upload the updated artifact to my local maven repo.

here is problem, no matter how much i try, unless i restart the code server and do a full compilation the changes of my module are never applied.

which means the code server is not detecting that my module have been changed.

am i doing anything wrong here?

On Sunday, June 5, 2016 at 9:05:31 AM UTC+3, Thomas Broyer wrote:
https://github.com/tbroyer/gwt-maven-archetypes has 3 multi-module Maven archetypes.

--
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, June 25, 2016

Re: element onclick doesn't get fired

I can see the onclick javascript function and I can invoke it on Chrome console.

Thanks

On Saturday, June 25, 2016 at 9:32:45 PM UTC+8, David wrote:
I used GWT in one old plain html page. The page has three frames. In one frame, there are three tabs. Tabs share the same content <table> under <div>. If I clicked one tab, the frame got loaded. On table, there are some <td> elements which have onclick attribute. If I clicked <td>, onclick function is invoked. However, If I saved <table> element for each tab when tab is clicked and then later, I append these <table> into <div> after the last tab is clicked. Element <td> with onclick attribute on the first two tables can not be invoked if I switch to them through clicking tab.  But Element <td> with onclick attribute on the last table can be invoked. 

For uninvoked onclick td elements, it is very strange that On Chrome, If I changed onclick attribute, onclick function can be invoked.

Thank you so much!

David

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

element onclick doesn't get fired

I used GWT in one old plain html page. The page has three frames. In one frame, there are three tabs. Tabs share the same content <table> under <div>. If I clicked one tab, the frame got loaded. On table, there are some <td> elements which have onclick attribute. If I clicked <td>, onclick function is invoked. However, If I saved <table> element for each tab when tab is clicked and then later, I append these <table> into <div> after the last tab is clicked. Element <td> with onclick attribute on the first two tables can not be invoked if I switch to them through clicking tab.  But Element <td> with onclick attribute on the last table can be invoked. 

For uninvoked onclick td elements, it is very strange that On Chrome, If I changed onclick attribute, onclick function can be invoked.

Thank you so much!

David

--
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: JsInterop receipts for simple JSNI code ?

FWIW, this is tracked at https://github.com/gwtproject/gwt/issues/9364

--
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, June 24, 2016

Re: JsInterop receipts for simple JSNI code ?

Sorry I didn't see this question earlier. It will work with both GWT and J2CL; that will be one of the main benefits.

On Fri, May 27, 2016 at 6:02 AM, Paul Stockley <pstockley1@gmail.com> wrote:
Will this be for J2CL only?

On Thursday, May 26, 2016 at 6:35:36 PM UTC-4, Goktug Gokdogan wrote:
JsInterop will provide some base classes for stuff that are not possible with JsInterop annotations.

On Wed, May 25, 2016 at 1:30 PM, Paul Stockley <pstoc...@gmail.com> wrote:
Eval is really slow. I would use JSNI. Eventually I think J2CL will have a way to execute javascript. Just isolate the JSNI in a helper class so it can easily be replaced.


On Wednesday, May 25, 2016 at 3:35:07 PM UTC-4, Hristo Stoyanov wrote:
Actually, it might be possible to do it with JsInterop only:

class Globals {

        @JsMethod(namespace=GLOBAL)
        public native Object eval(String expresion);
        
        @JsOverlay
        public native boolean isVariableDefined(String varName){
             return Boolean.TRUE.equals(eval("!!window['"+varName+"']"));
        }

}

I guess, you can also use JSON.safeEval() ... but we dont know if will survive  in J2CL.


On Wednesday, May 25, 2016 at 12:21:26 PM UTC-7, Hristo Stoyanov wrote:
Jens,
Thanks, so apparently JsInterop cannot be a complete replacement of JSNI?

I was hoping to be able to wrap in @JsType(native = true) something like Object.keys(window)

On Tuesday, May 24, 2016 at 5:11:39 PM UTC-7, Jens wrote:
You still need to use JSNI for accessing these properties. Depending on the API you want to build you could define @JsOverlay methods inside @JsType(native = true) classes and let them delegate to a JSNI based utility class.

-- 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-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+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: Adding Java modules as dependencies in GWT Maven project with plugin 2.7.0

If possible can you post an example.

Thanks
Sai

On Saturday, June 25, 2016 at 11:40:28 AM UTC+5:30, Sai Manoj Athota wrote:
Hi J,

Thanks for the quick reply. Still I am not able to build my project. Can you please have a look at my code as below,

<dependency>
<groupId>com.ex</groupId>
<artifactId>ccmscommon</artifactId>
<version>0.0.1-SNAPSHOT</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>com.ex</groupId>
<artifactId>ccmscommon</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

Where ccmscommon is the common project.

com/ccmscommon.gwt.xml

<?xml version="1.0" encoding="UTF-8"?>
<module>
    <source path="ex" />
</module>

i kept ccmscommon.gwt.xml in package com.

I am inheriting the ccmscommon module in ccms.gwt.xml as below,

<inherits name="com.ccmscommon" />

If you need more information, Please let me know.

Kindly help me to resolve this. Thanks in advance.

Thanks
Sai

On Friday, June 24, 2016 at 7:12:46 PM UTC+5:30, Jens wrote:
GWT also needs source files so you need to add a second dependency to the source artifact using <classifier>sources</classifier>.

You also need a GWT module for your common project and inherit it in your 2nd project's GWT module. Otherwise GWT compiler will not see the code of your common project. The common.gwt.xml file does not have to be bundled in the common artifact, it just needs to be on classpath (e.g. you can place it into your 2nd project's source/resource directory)

-- 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: Adding Java modules as dependencies in GWT Maven project with plugin 2.7.0

Hi J,

Thanks for the quick reply. Still I am not able to build my project. Can you please have a look at my code as below,

<dependency>
<groupId>com.ex</groupId>
<artifactId>ccmscommon</artifactId>
<version>0.0.1-SNAPSHOT</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>com.ex</groupId>
<artifactId>ccmscommon</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

Where ccmscommon is the common project.

com/ccmscommon.gwt.xml

<?xml version="1.0" encoding="UTF-8"?>
<module>
    <source path="ex" />
</module>

i kept ccmscommon.gwt.xml in package com.

I am inheriting the ccmscommon module in ccms.gwt.xml as below,

<inherits name="com.ccmscommon" />

If you need more information, Please let me know.

Kindly help me to resolve this. Thanks in advance.

Thanks
Sai

On Friday, June 24, 2016 at 7:12:46 PM UTC+5:30, Jens wrote:
GWT also needs source files so you need to add a second dependency to the source artifact using <classifier>sources</classifier>.

You also need a GWT module for your common project and inherit it in your 2nd project's GWT module. Otherwise GWT compiler will not see the code of your common project. The common.gwt.xml file does not have to be bundled in the common artifact, it just needs to be on classpath (e.g. you can place it into your 2nd project's source/resource directory)

-- 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: Adding Java modules as dependencies in GWT Maven project with plugin 2.7.0

GWT also needs source files so you need to add a second dependency to the source artifact using <classifier>sources</classifier>.

You also need a GWT module for your common project and inherit it in your 2nd project's GWT module. Otherwise GWT compiler will not see the code of your common project. The common.gwt.xml file does not have to be bundled in the common artifact, it just needs to be on classpath (e.g. you can place it into your 2nd project's source/resource directory)

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

Adding Java modules as dependencies in GWT Maven project with plugin 2.7.0

Hi Team,

We have 2 maven projects where the 1st is pure java module called "common" which is used by some other pure java maven projects also.
And the 2nd is Gwt maven module. I want to include the 1st module in gwt module as maven dependency.  Can you please provide the steps to do it. I tried as below,

Included 1st project as dependency in 2nd project's pom as below,

<dependency>
<groupid>com.ex<groupid>
<artifactid>example</artifactid>
<version>0.0.1-SNAPSHOT</version>
</dependency>

But getting the error as below,

 No source code is available for type com.ex.Example did you forget to inherit a required module?

Where com.ex.Example is the Java class from 1st maven module.

Kindly assist me to achieve this.

Thanks
Sai

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

GWT polymer and Google App engine deploy

We are building a new GWT module using GWT polymer. Our GWT version is 2.8.0-beta1 and vaadin-gwt-polymer-elements is 1.2.3.0 with Java 7 (Google app engine is not supporting Java 8 yet)
When compiling GWT (using maven) polymer library is using bower to install all it's dependencies and creates a bower_components folder in the final package. We are deploying to Google app engine and Prism bower component has invalid chars in his path, which causing the deploy to fail. We can remove this library with a script from being deployed or find another workaround but wondering if anyone else has experienced with deploying GWT using Polymer to Google app engine and has some better idea. 

--
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: How to debug GWT application on Eclipse

Didn't now about that CTRL+O thing.
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+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: How to debug GWT application on Eclipse

Oh great, could be enough to debug in chrome debugger, but I guess it will be more confortable to debug directly in eclipse.
Thanks for all the infos ;)

--
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: How to debug GWT application on Eclipse



On Friday, June 24, 2016 at 11:39:22 AM UTC+2, Jens wrote:
- Then in the tree view open 'top', open {nameOfYourApp}, open 127.0.0.1:9876, open "sourcemaps/{nameOfYourApp}.
- Now you will find your original java source. If you open a java file here you can set a breakpoint in Chrome...

Alternatively, on Mac, just hit CMD + O (open) and enter your Java file name. Not sure about the shortcut on windows/linux but I guess you quickly figure it out.

Ctrl+O 

--
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: How to debug GWT application on Eclipse

- Then in the tree view open 'top', open {nameOfYourApp}, open 127.0.0.1:9876, open "sourcemaps/{nameOfYourApp}.
- Now you will find your original java source. If you open a java file here you can set a breakpoint in Chrome...

Alternatively, on Mac, just hit CMD + O (open) and enter your Java file name. Not sure about the shortcut on windows/linux but I guess you quickly figure it out.

-- 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: How to debug GWT application on Eclipse

Like Thomas said. Don't use DevMode but keep using SuperDevMode.

The easiest way to do debugging is to use Chrome as a browser.

- When running your app in SuperDevMode press F12 in Chrome.
- This will show the Chrome developer tools window
- In this panel select the 'sources' tab
- Then in the tree view open 'top', open {nameOfYourApp}, open 127.0.0.1:9876, open "sourcemaps/{nameOfYourApp}.
- Now you will find your original java source. If you open a java file here you can set a breakpoint in Chrome...


--
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: How to debug GWT application on Eclipse

Wow... thanks a lot Thomas for your fast and good reply ! 
This isn't really clear in the doc, but this clear for me now. And after followed your linked, it works like a charm.
Thanks again :)

--
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: Exception: java.lang.NoClassDefFoundError: com/google/gwt/dev/DevMode

Your problem is different. Line 177 in DevMode.java in GWT 2.7 indicates that you're passing a -server argument to DevMode whose value references a class absent from the classpath (one possibility is using AppEngine but not having the appengine JAR in the classpath). There should be a message on the standard error just above the stacktrace.

On Friday, June 24, 2016 at 10:48:12 AM UTC+2, Sachin Chaudhari wrote:


Hi Sara, what you did with plugin. I mean My one application runs perfectly with that plugin.  But second application giving "java.lang.ClassNotFoundException:at com.google.gwt.dev.DevMode$ArgHandlerServer.setString(DevMode.java:177)
at com.google.gwt.util.tools.ArgHandlerString.handle(ArgHandlerString.java:26)
at com.google.gwt.util.tools.ToolBase.processArgs(ToolBase.java:250)
at com.google.gwt.dev.ArgProcessorBase.processArgs(ArgProcessorBase.java:30)
at com.google.gwt.dev.DevMode.main(DevMode.java:412)
Google Web Toolkit 2.7.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.

Re: How to debug GWT application on Eclipse

"Classic" Dev Mode (or, as most people call it, "legacy" devmode) is deprecated and scheduled for deletion after the 2.8 release. It only works in Internet Explorer (not Edge, but works in IE11), and in really old versions of Firefox and Chrome/Chromium.
The way forward is "Super Dev Mode", where your application is compiled to JS on-demand, on-the-fly. This however means that you need to use JavaScript debugging tools, but thanks to SourceMaps you can see your original Java code when debugging. Those tools include your browsers' dev tools, the Eclipse SDBG plugin https://sdbg.github.io (only works with Chrome AFAICT), and IntelliJ IDEA built-in support (IIRC, requires a browser extension, but works in both Chrome and Firefox).

On Friday, June 24, 2016 at 10:46:52 AM UTC+2, Pierre Mineaud wrote:
Hi GWT community. 
I am trying GWT since yesterday, and I'm following the first app tutorial on gwt official.
I'm at the debugging section and i can't figure it out to debug my code in eclipse. 

I followed each line of this tutorial, so this is what I've done : 
- Installed the last eclipse version (Version: Neon Release (4.6.0))
- Installed GWT pluggin for eclipse + sdk : Plugin for Eclipse 4.5 (Mars)
- Created the first app Stockwatcher from the eclipse pluggin (I didn't used webAppCreator or maven atm)
- Built my UI code

Until there, all is working fine. I use the run as Web Application (GWT Super Dev Mode) in eclipse and I see my app working in chrome at the http://127.0.0.1:8888/StockWatcher.html.

The problem I have now during the debugging part is, when I put some breakpoint in my code, I relaunched my app in the same mode (GWT Super Dev Mode) but my code never stopped on my breakpoint. So I tried to launch it with Debug as Web Application (GWT Super Dev Mode)... Same here : No stop on breakpoint. So I tried an other mode : Run/Debug as Web Application (GWT Classic Dev Mode), my generated url changed to http://127.0.0.1:8888/StockWatcher.html?gwt.codesvr=127.0.0.1:9997. But when I launched it in my chrome / FF, I got this popup : "Couldn't load stockwatcher from Supder Dev Mode server at http://127.0.0.1:9876. Please make sure this server is ready. Do you want to try again?"

What I did wrong ?

Thanks for your tips ;)

--
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: Getting browser time zone name

We use moment.js for this.

On 24 June 2016 at 10:40, Razvan Olar <rolar.xiss@gmail.com> wrote:
Is there a way in which I can get the browser time zone name by using only GWT methods? E.g. America/Denver, America/New_York

I was looking over com.google.gwt.i18n.client.TimeZoneInfo but I didn't find a way of doing that.

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



--

Alain Ekambi

Co-Founder

Ahomé Innovation Technologies

http://www.ahome-it.com/

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

How to debug GWT application on Eclipse

Hi GWT community. 
I am trying GWT since yesterday, and I'm following the first app tutorial on gwt official.
I'm at the debugging section and i can't figure it out to debug my code in eclipse. 

I followed each line of this tutorial, so this is what I've done : 
- Installed the last eclipse version (Version: Neon Release (4.6.0))
- Installed GWT pluggin for eclipse + sdk : Plugin for Eclipse 4.5 (Mars)
- Created the first app Stockwatcher from the eclipse pluggin (I didn't used webAppCreator or maven atm)
- Built my UI code

Until there, all is working fine. I use the run as Web Application (GWT Super Dev Mode) in eclipse and I see my app working in chrome at the http://127.0.0.1:8888/StockWatcher.html.

The problem I have now during the debugging part is, when I put some breakpoint in my code, I relaunched my app in the same mode (GWT Super Dev Mode) but my code never stopped on my breakpoint. So I tried to launch it with Debug as Web Application (GWT Super Dev Mode)... Same here : No stop on breakpoint. So I tried an other mode : Run/Debug as Web Application (GWT Classic Dev Mode), my generated url changed to http://127.0.0.1:8888/StockWatcher.html?gwt.codesvr=127.0.0.1:9997. But when I launched it in my chrome / FF, I got this popup : "Couldn't load stockwatcher from Supder Dev Mode server at http://127.0.0.1:9876. Please make sure this server is ready. Do you want to try again?"

What I did wrong ?

Thanks for your tips ;)

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

Getting browser time zone name

Is there a way in which I can get the browser time zone name by using only GWT methods? E.g. America/Denver, America/New_York

I was looking over com.google.gwt.i18n.client.TimeZoneInfo but I didn't find a way of doing that.

--
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: Exception: java.lang.NoClassDefFoundError: com/google/gwt/dev/DevMode



Hi Sara, what you did with plugin. I mean My one application runs perfectly with that plugin.  But second application giving "java.lang.ClassNotFoundException:at com.google.gwt.dev.DevMode$ArgHandlerServer.setString(DevMode.java:177)
at com.google.gwt.util.tools.ArgHandlerString.handle(ArgHandlerString.java:26)
at com.google.gwt.util.tools.ToolBase.processArgs(ToolBase.java:250)
at com.google.gwt.dev.ArgProcessorBase.processArgs(ArgProcessorBase.java:30)
at com.google.gwt.dev.DevMode.main(DevMode.java:412)
Google Web Toolkit 2.7.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.

Thursday, June 23, 2016

Re: java script file linking with gwt java file

You need to provide more info for a definitive answer, but it is likely a race condition,either in the semantics of your html or just because of the manner in which GWT loads.  You will likely want to add some sort of check that the function exists and do a deferred scheduling until the point where the function exists. You will also need to make sure that you are referencing the function correctly via JSNI using the $wnd., IE $wnd.MakeTextBoxUrduEnabled(). You could also provide a Interface wrapper for the class.

Options for checking loaded:

1. manual checks
2. Instead of adding the js via html, you can use scriptInjector which provides a callback interface.

On Thursday, June 23, 2016 at 4:43:02 AM UTC-7, Syed Shahkar Raza wrote:
Hey there,
i m working on GWT Urdu Editor application. i have managed to write javascript file to convert data in unicode. but in my entrypoint class i m unable to call the function which is being used in .js file i m attaching files . please kindly help me out.

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