Re: Using Constants based on Environment

2016-09-30 Thread Jens
Ideally your build tool should put your environment into prod or dev mode 
and the GWT app shouldn't know/care about it. With Maven / Gradle / Ant you 
can use "resource filtering" to rewrite resources like property files while 
being copied to the output folder. 

In that case you would have

Config.properties:
key = ${key}

dev.properties:
key = devValue

prod.properties:
key = prodValue

and the build tool will replace ${key} with the value of one of the other 
two files before GWT will pick up config.properties.


Otherwise you might try (no idea if it works):

interface Config extends Constants {...}
interface DevConfig extends Config {...} -> create a file 
DevConfig.properties
interface ProdConfig extends Config {...} -> create a file 
ProdConfig.properties

and in Java code

Config config;
if ("dev".equals(System.getProperty("env")) {
  config = GWT.create(DevConfig.class);
} else if ("prod".equals(..)) {
  .
}

Can't remember, but System.getProperty() might require GWT 2.8.


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


Troubleshooting compilation issues?

2016-09-30 Thread David Becker
Any advice on how to trouble shoot code that runs fine in SDM but causes 
lockups when run in full compiled mode? Using the -draftCompile flag fixes 
it in compiled mode too. This suggests that something in the optimizations 
isn't playing nice with the code, but I'm at a bit of a loss for how to 
figure out what it is. I've observed the behavior on 2.8.0-RC2 & -RC3 (not 
sure about older versions).

Thanks in advance for any advice!

-- 
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 google crawler error undefined.cache.js

2016-09-30 Thread Vassilis Virvilis
I was using this

APP_DIR=/var/lib/tomcat8/webapps/vizit/vizit; sudo  ln -s `ls
$APP_DIR/*.cache.js | head -n 1` $APP_DIR/undefined.cache.js; ls -lt
$APP_DIR/

On Fri, Sep 30, 2016 at 9:36 PM, Zied Hamdi  wrote:

> Hi Thomas,
>
> Thanks for the fast reply :), it's been a while we didn't exchange !
>
> I tried set-property-fallback, but this means I have to migrate to a newer
> gwt version (2.7 or 2.8). The issue is that the compiler for those two
> versions stops unexpectedly without any error message (it only writes
> "linking succeeded"). In addition, when it succeeds in compilation, I can't
> run the app in standard mode : the compiler of the super-dev-mode triggers
> even if I launch the app in standard mode (and I need to see what happens
> with the production js)
>
> With all these issues and because the bug is critical to fix as fast as
> possible, I decided to downgrade back to 2.6.1 where I don't have these
> unexpected compiling failure without errors ... :-/
>
> Actually I need to find a solution for the 2.6.1 version
> (where set-property-fallback doesn't apply), I will have more time to
> understand what happens with the new GWT compilers when this bug will be
> workarounded...
>
>
> On Friday, September 30, 2016 at 7:05:06 PM UTC+1, Thomas Broyer wrote:
>>
>> Have you tried set-property-fallback?
>
> --
> 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.
>



-- 
Vassilis Virvilis

-- 
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 google crawler error undefined.cache.js

2016-09-30 Thread Zied Hamdi
Hi Thomas,

Thanks for the fast reply :), it's been a while we didn't exchange !

I tried set-property-fallback, but this means I have to migrate to a newer 
gwt version (2.7 or 2.8). The issue is that the compiler for those two 
versions stops unexpectedly without any error message (it only writes 
"linking succeeded"). In addition, when it succeeds in compilation, I can't 
run the app in standard mode : the compiler of the super-dev-mode triggers 
even if I launch the app in standard mode (and I need to see what happens 
with the production js)

With all these issues and because the bug is critical to fix as fast as 
possible, I decided to downgrade back to 2.6.1 where I don't have these 
unexpected compiling failure without errors ... :-/

Actually I need to find a solution for the 2.6.1 version 
(where set-property-fallback doesn't apply), I will have more time to 
understand what happens with the new GWT compilers when this bug will be 
workarounded...

On Friday, September 30, 2016 at 7:05:06 PM UTC+1, Thomas Broyer wrote:
>
> Have you tried set-property-fallback?

-- 
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 google crawler error undefined.cache.js

2016-09-30 Thread Thomas Broyer
Have you tried set-property-fallback?

-- 
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 google crawler error undefined.cache.js

2016-09-30 Thread Zied Hamdi

0down votefavorite 


I have a GWT application http://islamart.tn which fails on google crawling 
: The 'fetch as google' feature fails with a 'partial' status saying that 
it can't find undefined.cache.js

After some research, I found that this js is the app js when the user.agent 
is not recognized

I therefore changed my

UserAgentPropertyGenerator.UserAgent

enum value for gecko to recgnize google bot:

 gecko1_8("return (ua.indexOf('Googlebot') || ua.indexOf('gecko') != -1 || 
docMode >= 11);");

In my core GWT module I naturally added the line :



I installed 'Chrome UA spoofer" to emulate the Googlebot user.agent 
request, and what happened is that now I have a warning at startup saying 
that the runtime value safari is different than the compile time gecko_18

I still see some checking runtime code in the generated js

{$stackDepth_0=stackIndex_0-1;return 
'gecko1_8'}$stackDepth_0=stackIndex_0-1;return 'unknown'}

but those files are very large, and I don't know from which classes they 
are generated.

Additionally, I had to fall back to the version 2.6.1 since compilation 
with 2.8.0RC2 and 2.7.0 don't finish the job (for some reasons I don't have 
the time to investigate now)

Any ideas please?...

I need an answer to one of these questions :

   - How to personalize the runtime user agent check generated code ?
   - How to make googlebot use the gecko_18 version of my app ? 



p.s : I posted this message 
on 
http://stackoverflow.com/questions/39796166/gwt-application-crawler-error-undefined-cache-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.


Using Constants based on Environment

2016-09-30 Thread harshyadav
Hi,

I have a client side configuration file Config.properties, in which I store 
some client properties for the application.

I use this file as:


*Config.properties:*

key = xyz



*Config.java:*

public interface Config
 extends Constants {

 String key();
}



Now, I want to have 2 versions of this, for dev and production environments.

I differentiate between the environments using the custom properties in 
different *.gwt.xml files:



How can I use 2 versions of the properties (Config_dev.properties and 
Config_prod.properties) file mapped to the same Java class (Config.java).

I tried doing it with localization (via setting locale property), but I get 
other localization stuff with it that I don't need.

Thanks,
Harsh

-- 
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 2.8 RC2 with Polymer : Creating custom element using JsInterop

2016-09-30 Thread Thomas Broyer
Well, Vaadin's gwt-polymer-elements have moved to JsInterop 
1.0: https://github.com/vaadin/gwt-polymer-elements

On Friday, September 30, 2016 at 3:56:30 PM UTC+2, GAURAV GUPTA wrote:
>
> Thanks Thomas for quick response, do you see any example using GWT 
> elements to create custom elements using Polymer.
>
> Regards,
> Gaurav
>
> On Friday, 30 September 2016 17:46:41 UTC+5:30, Thomas Broyer wrote:
>>
>> JsExport has been replaced by JsType, JsConstructor, JsMethod and 
>> JsProperty; see 
>> https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0
>>  
>> (link comes from 2.8 beta release notes)
>
>

-- 
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 2.8 RC2 with Polymer : Creating custom element using JsInterop

2016-09-30 Thread GAURAV GUPTA
Thanks Thomas for quick response, do you see any example using GWT elements 
to create custom elements using Polymer.

Regards,
Gaurav

On Friday, 30 September 2016 17:46:41 UTC+5:30, Thomas Broyer wrote:
>
> JsExport has been replaced by JsType, JsConstructor, JsMethod and 
> JsProperty; see 
> https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0
>  
> (link comes from 2.8 beta release notes)

-- 
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 and Oracle

2016-09-30 Thread Thomas Broyer

On Friday, September 30, 2016 at 3:03:33 PM UTC+2, Eric Nissan wrote:
>
> Hey just curious, does Oracle contribute to GWT at all?  I know they are 
> in a battle with Google over Java (android), but one would think they could 
> put that aside and contribute as GWT really does encourage Java usage.
>

If they ever contributed to GWT, that was undercover ;-)

No, Oracle has been pushing JavaFX for building so-called RIAs; it's a 
different programming and deployment model, that's going to fail miserably 
(like Silverlight, and Java applets and web start before them) but well, 
they're short-sighted and have deep pockets so… (just like they've been 
pushing J2ME for years after feature phones were almost dead and replaced 
with iOS and Android smartphones; are about to ship "project jigsaw" in 
Java 9 when almost everybody turned their back on OSGi, and are only just 
starting to look at what Java EE could like in the cloud-oriented world we 
live in for a few years now)

-- 
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.0 RC3 is here!

2016-09-30 Thread Michael Joyner

  
  



  
   Forwarded Message 
  

  
Subject:

[gwt-contrib] GWT 2.8.0 RC3 is here!
  
  
Date: 
Thu, 29 Sep 2016 07:54:46 -0700 (PDT)
  
  
From: 
'Daniel Kurka' via GWT Contributors
  
  
  
Reply-To:

google-web-toolkit-contribut...@googlegroups.com
  
  
To: 
GWT Contributors
  
  

  
  
  
  
Hi all,
  
  
  I just build the GWT 2.8.0 RC3 and
pushed it to maven central. The complete SDK is also
available from here.
  
  
  Please start testing and let us know
if you run into any trouble and file
  bugs.
  
  
  We are planing to release this as
GWT 2.8.0 if we do not here about any serious issues within
the next two weeks. The release
  notes for RC3 will be made available shortly after
this notice.
  
  
  Daniel,

on behalf of the GWT team
  
  -- 
  You received this message because you are subscribed to the Google
  Groups "GWT Contributors" group.
  To unsubscribe from this group and stop receiving emails from it,
  send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
  To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/0314b8df-8e83-4721-b424-7adcdf13ca8a%40googlegroups.com.
  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.


GWT and Oracle

2016-09-30 Thread Eric Nissan
Hey just curious, does Oracle contribute to GWT at all?  I know they are in 
a battle with Google over Java (android), but one would think they could 
put that aside and contribute as GWT really does encourage Java usage.

-- 
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 RC2 with Polymer : Creating custom element using JsInterop

2016-09-30 Thread Thomas Broyer
JsExport has been replaced by JsType, JsConstructor, JsMethod and JsProperty; 
see 
https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0 
(link comes from 2.8 beta release notes)

-- 
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 RC2 with Polymer : Creating custom element using JsInterop

2016-09-30 Thread GAURAV GUPTA
As in link here : 
https://vaadin.com/blog/-/blogs/using-polymer-elements-in-gwt-development

We are using JsExport annotation for creating and using/wrapping GWT 
element in polymer and  creating custom element. But I think 2.8 RC2 is 
missing JsExport. can you please provide me solution if we can built 
something like this using GWT 2.8. RC2?

Thanks,
Gaurav

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


chrome 53 freezes my GWT 2.7 app

2016-09-30 Thread Kirill Prazdnikov
Debugging in Chrome is broken for me. 
It consumes 100% cpu and hangs.
I use an old Chrome to work.

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