gwt 2.7 And speed tracer?

2015-01-27 Thread Clement Boret
Hi.
My app is running slow and I saw that speed tracer is supposed to help. me 
in finding where and why things are slow

HOWEVER I really have issues:

1)On the official page 
https://developers.google.com/web-toolkit/speedtracer/get-started#downloading 
 it seems that the link to install speed tracer chrome extension is 
out... (where can I found the chrome extension compatible with the tools 
that I am using?)

2) when in eclipse I try to use the speed tracer porfile... in the end I 
have an error message:
An internal error occurred during: Launching barter01 using Speed Tracer.
Could not initialize class 
com.google.gwt.eclipse.core.speedtracer.SourceViewerServer




for information I use 
chrome Version 40.0.2214.91 m
GWT 2.7
eclipse 4.4.1 and the google plugin for eclipse 


thank you for your help

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


How to Find RTL (or) LTR themes Loaded In GWT application?

2015-01-27 Thread Mohammed Sameen
Hi,
In my GWT Application, I need to support multiple languages like 
english,arabic,hebrew langauages and also i am using LTR and RTL themes in 
module.gwt.xml.But internally in my application i need to know which themes 
is loading (RTL,LTR).Since i need to write some logic in my application for 
both cases.So how can i identify the themes(RTL or LTR)?Any Suggestion?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Regex matches error in production

2015-01-27 Thread Jens
Seems like you can not do \d{0,15}+ in JavaScript. You have to wrap it in a 
group (\d{0,15})+ or remove the plus quantifier.

.matches(^\\d{0,15}(\\.\\d{1,2})?$)
.matches(^(\\d{0,15})+(\\.\\d{1,2})?$)

You can easily test this using https://www.regex101.com/#javascript (you 
need to change the double backslash back to single backslash). On that site 
you can also see that \d{0,15}+ is allowed for PCRE but not for JavaScript.

Generally GWT tries to convert Java Regex to JavaScript Regex. Not sure to 
what extend it does so, so maybe your issue can be considered a bug.

With SuperDevMode you detect these kind of errors sooner since you always 
work with compiled JavaScript.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Can not deploy GWT application into a standalone Jetty server

2015-01-27 Thread ingenieria . stv
I have the same problem too. If i make mvn:clean and mvn:package the super 
dev mode problem disappear but i get a Not Request Context for operation. 
If a run the super dev mode, it solves me the Not Request Context for 
operation problem but i get the super dev mode error.

Anyone know how to solve this by another way?

El domingo, 28 de diciembre de 2014, 21:43:58 (UTC-3), David escribió:

 I used GWT 2.7 and Java 7. After I compiled a big project and deployed it 
 into standalone Jetty 8.0.4 in Window 7, If I used a IP address as an url, 
 I got the following message - Couldn't load gwt from Super Dev Mode server 
 at http://192.168.8.27:. Please make sure this server is ready. Do 
 you want to try again. However, If I used a localhost:, this 
 application works fine. If I used Eclipse built-in server, it works fine no 
 matter I used an ip address as url or localhost.
  
 I also want to use PhoneGap to wrap this application. How I do specify an 
 url for this PhoneGap application?
  
 Thanks! Happy New Year!
  
 David


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Window.confirm() on Chrome 16 throws an exception.

2015-01-27 Thread Eugene Labonarsky
I have the same problem on GWT 2.6.1 Any news on this?

вторник, 5 августа 2014 г., 14:29:21 UTC+3 пользователь Reinhard Stein 
написал:

 I have the same problem on GWT 2.6. Any news on this?

 In Super Dev Mode in Chrome I get the following message, but no stack 
 trace:

 Exception caught: (TypeError) : Cannot read property 'element' of null

 On Thursday, November 10, 2011 1:16:42 PM UTC+1, Stefano Ciccarelli wrote:

 I'm using GWT 2.4.

 On Chrome 16 (beta) when I call Window.confirm I get an exception.
 The stack trace is:
 Caused by: java.lang.Throwable: (TypeError): Cannot read property 
 'hasPort' of undefined
 at 
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
 at 
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
 at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
 at 
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:184)
 at 
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java:35)
 at com.google.gwt.user.client.Window.confirm(Window.java)
 at 
 it.indacosoftware.yap.client.forms.home.HomePresenter.processEvent(HomePresenter.java:1133)

 The dialog is correctly displayed then when I click Ok or Cancel I get 
 the exception.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: client logging config help with unexpected popup

2015-01-27 Thread rjcarr
So I looked at the logging module's xml files and it seems most of the 
things I'm disabling are disabled by default.  So, I changed my module file 
to just be this:

inherits name=com.google.gwt.logging.Logging/
set-property name=gwt.logging.logLevel value=CONFIG/


And I'm still getting the white popup.  Looking at the GWT source code it 
appears it is coming from LoggingPopup but this is only called by 
PopupLogHandler.  This should be disabled by the log module here (in 
LoggingDisabled.gwt.xml which is inherited by Logging.gwt.xml):
replace-with class=com.google.gwt.logging.client.PopupLogHandler
 when-type-is class=com.google.gwt.logging.client.HasWidgetsLogHandler /
/replace-with
set-property name=gwt.logging.hasWidgetsHandler value=DISABLED /


But it doesn't seem to be working.  So what am I doing wrong?  I can't be 
the only one compiling on linux with logging and seeing this, right?

Thanks!

On Monday, January 26, 2015 at 5:47:07 PM UTC-8, rjcarr wrote:

 I'm using client logging and have been for a while.  Things worked fine in 
 2.6 but when I switched to 2.7 I got a few logging config errors as 
 handlers were no longer supported.  After correcting these and opening my 
 app in a browser I get a white popup window in the upper left (looks like 
 this http://imgur.com/Xavu6K7).  Strangely, this only shows up when 
 building and running on linux; when running on a mac the popup never 
 appears.

 The relevant parts of module file looks like this:

 inherits name=com.google.gwt.logging.Logging/


 set-property name=gwt.logging.logLevel value=CONFIG/

 set-property name=gwt.logging.enabled value=TRUE /

 set-property name=gwt.logging.consoleHandler value=ENABLED /

 set-property name=gwt.logging.developmentModeHandler value=DISABLED 
 /

 set-property name=gwt.logging.hasWidgetsHandler value=DISABLED /

 set-property name=gwt.logging.systemHandler value=DISABLED /

 set-property name=gwt.logging.simpleRemoteHandler value=DISABLED /


 Basically, all I want is the console handler as I'm doing everything else 
 with a custom handler (it's silly these aren't disabled by default).  My 
 custom handler extends Handler and is pretty simple.  It is created like 
 this:

 Logger.getLogger().addHandler(new CustomHandler());

 And I'm sure the white popup isn't coming from there.  So what's going on? 
  And isn't this some sort of GWT defect if things behave differently on 
 different platforms using identical codebases?

 Thanks for the help!


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


JSInterop sample / tutorial?

2015-01-27 Thread marian lux
Is there a working JSInterop sample (e.g. project on github) online or an 
article how to get started? It is part of the current gwt 2.7 release but I 
could not find a working project or article. It would be nice if the 
gwtproject.org site will contain any tutorial / article too.

E.g. I found some google group entries about JSInterop and this project:
https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground
But the maven does not work any more and the google group entries don't 
describe a how-to.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JSInterop sample / tutorial?

2015-01-27 Thread Juan Pablo Gardella
See

   - https://github.com/workingflows/gwt-jscore.git
   - https://github.com/workingflows/gwt-jquery.git
   - https://github.com/workingflows/gwt-playground.git


On 27 January 2015 at 18:30, marian lux mlux...@gmail.com wrote:

 Is there a working JSInterop sample (e.g. project on github) online or an
 article how to get started? It is part of the current gwt 2.7 release but I
 could not find a working project or article. It would be nice if the
 gwtproject.org site will contain any tutorial / article too.

 E.g. I found some google group entries about JSInterop and this project:
 https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground
 But the maven does not work any more and the google group entries don't
 describe a how-to.

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit 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 http://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 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT compile times between 2.6.0 2.7.0

2015-01-27 Thread Martin Kersten
 As for better computers for the developers, we try. We've mandated 16GB+ 
RAM  all computers are refreshed every 3 years with good specs. I've been 
pushing for SSDs but we have limited availability to most developers. :)

I use a old T410 with 8GB and a hard drive. I ran it on linux and what I 
found speeding up my development cycle the most was using 2GB for a ram 
drive (even 1GB would have been enough). This way I almost got instant save 
and compile times. But with GWT once a full build happens it seams that 
beside some minor issues file access is almost irrelevant. So I do not know 
if this might speed up anything for you but you can give it a try. 


Regards,

Martin (Kersten)


PS: The ram drive is synced to disk every 5 minutes so I wont lose more 
than 5 min work at most but never happend. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: client logging config help with unexpected popup

2015-01-27 Thread rjcarr
One more note: removing the logLevel property didn't change anything, the 
popup still shows up.  So, at that point, all I'm doing is inheriting the 
Logging module.

inherits name=com.google.gwt.logging.Logging/


However, if I explicitly disable logging with this:

set-property name=gwt.logging.enabled value=FALSE/

Then the popup doesn't appear, as expected, but then the logging obviously 
doesn't work.

I really don't think I'm doing anything out of the ordinary and I'm 
completely stumped, especially considering I only see this when building 
and serving from linux.

On Tuesday, January 27, 2015 at 1:34:44 PM UTC-8, rjcarr wrote:

 So I looked at the logging module's xml files and it seems most of the 
 things I'm disabling are disabled by default.  So, I changed my module file 
 to just be this:

 inherits name=com.google.gwt.logging.Logging/
 set-property name=gwt.logging.logLevel value=CONFIG/


 And I'm still getting the white popup.  Looking at the GWT source code it 
 appears it is coming from LoggingPopup but this is only called by 
 PopupLogHandler.  This should be disabled by the log module here (in 
 LoggingDisabled.gwt.xml which is inherited by Logging.gwt.xml):
 replace-with class=com.google.gwt.logging.client.PopupLogHandler
  when-type-is class=com.google.gwt.logging.client.HasWidgetsLogHandler 
 /
 /replace-with
 set-property name=gwt.logging.hasWidgetsHandler value=DISABLED /


 But it doesn't seem to be working.  So what am I doing wrong?  I can't be 
 the only one compiling on linux with logging and seeing this, right?

 Thanks!

 On Monday, January 26, 2015 at 5:47:07 PM UTC-8, rjcarr wrote:

 I'm using client logging and have been for a while.  Things worked fine 
 in 2.6 but when I switched to 2.7 I got a few logging config errors as 
 handlers were no longer supported.  After correcting these and opening my 
 app in a browser I get a white popup window in the upper left (looks like 
 this http://imgur.com/Xavu6K7).  Strangely, this only shows up when 
 building and running on linux; when running on a mac the popup never 
 appears.

 The relevant parts of module file looks like this:

 inherits name=com.google.gwt.logging.Logging/


 set-property name=gwt.logging.logLevel value=CONFIG/

 set-property name=gwt.logging.enabled value=TRUE /

 set-property name=gwt.logging.consoleHandler value=ENABLED /

 set-property name=gwt.logging.developmentModeHandler value=DISABLED 
 /

 set-property name=gwt.logging.hasWidgetsHandler value=DISABLED /

 set-property name=gwt.logging.systemHandler value=DISABLED /

 set-property name=gwt.logging.simpleRemoteHandler value=DISABLED /


 Basically, all I want is the console handler as I'm doing everything else 
 with a custom handler (it's silly these aren't disabled by default).  My 
 custom handler extends Handler and is pretty simple.  It is created like 
 this:

 Logger.getLogger().addHandler(new CustomHandler());

 And I'm sure the white popup isn't coming from there.  So what's going 
 on?  And isn't this some sort of GWT defect if things behave differently on 
 different platforms using identical codebases?

 Thanks for the help!



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JSInterop sample / tutorial?

2015-01-27 Thread marian lux
Thank you.

How to run this projects (ideally in eclipse)?





Am Dienstag, 27. Januar 2015 22:49:20 UTC+1 schrieb Juan Pablo Gardella:

 See 

- https://github.com/workingflows/gwt-jscore.git
- https://github.com/workingflows/gwt-jquery.git
- https://github.com/workingflows/gwt-playground.git


 On 27 January 2015 at 18:30, marian lux mlu...@gmail.com javascript: 
 wrote:

 Is there a working JSInterop sample (e.g. project on github) online or an 
 article how to get started? It is part of the current gwt 2.7 release but I 
 could not find a working project or article. It would be nice if the 
 gwtproject.org site will contain any tutorial / article too.

 E.g. I found some google group entries about JSInterop and this project:
 https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground
 But the maven does not work any more and the google group entries don't 
 describe a how-to.

  -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to google-we...@googlegroups.com 
 javascript:.
 Visit this group at http://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 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT compile times between 2.6.0 2.7.0

2015-01-27 Thread mdwarne
Depending on how many permutations you compile, setting localWorkers to a 
larger number then one can make a big difference if you have a multi-core 
workstation.  My compiles are 2-3 times faster with local workers set to 4.


Mike.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: client logging config help with unexpected popup

2015-01-27 Thread Jens
I am not sure if that also applies to GWT 2.7 as I am using GWT trunk but I 
had to delete SDM caches to let changes to logging configuration take 
effect. When SDM starts it tells you which workDir it uses for compilation. 
Next to that workDir SDM also creates a cache directory named 
gwt-cache-some hash. Simply delete all these cache folders and also the 
workDir itself. Then start SDM again to give it a clean start.

When you inherit Logging.gwt.xml then GWT will, by default, only log SEVERE 
and everything else will be compiled out. If you want a lower level then 
you need to use

set-property name=gwt.logging.enabled value=TRUE/
set-property name=gwt.logging.logLevel value=INFO/

in your own module.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Regex matches error in production

2015-01-27 Thread Bhumika Thaker

   Jens,
 
  Thanks for addressing issue and url.

  This is working fine. 
 ^\\d{0,15}(\\.\\d{1,2})?$

 Thanks,
 Bhumika


On Tuesday, 27 January 2015 15:17:38 UTC+5:30, Jens wrote:

 Seems like you can not do \d{0,15}+ in JavaScript. You have to wrap it in 
 a group (\d{0,15})+ or remove the plus quantifier.

 .matches(^\\d{0,15}(\\.\\d{1,2})?$)
 .matches(^(\\d{0,15})+(\\.\\d{1,2})?$)

 You can easily test this using https://www.regex101.com/#javascript (you 
 need to change the double backslash back to single backslash). On that site 
 you can also see that \d{0,15}+ is allowed for PCRE but not for 
 JavaScript.

 Generally GWT tries to convert Java Regex to JavaScript Regex. Not sure to 
 what extend it does so, so maybe your issue can be considered a bug.

 With SuperDevMode you detect these kind of errors sooner since you always 
 work with compiled JavaScript.

 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: client logging config help with unexpected popup

2015-01-27 Thread Robert J. Carr
Thanks for the response, but I'm fairly certain I've never started super
dev mode, certainly not on my build server, nor do I see any unexpected
cache folders in my working directory.  I like the idea though, maybe there
is some other cache I can try? I vaguely remember seeing such a thing but I
can't recall where.

  If you want a lower level then you need to use ... in your own module.

Right, as I said, all I have in my config file is this:

inherits name=com.google.gwt.logging.Logging/
set-property name=gwt.logging.enabled value=TRUE/
set-property name=gwt.logging.logLevel value=CONFIG/

Yet I'm still getting the logging popup.  Makes no sense to me.  As I said,
it only happens in linux (specifically RHEL and it happened in both 5 and 7
although I don't see how it matters).  It didn't (and doesn't) happen in
GWT 2.6.1 with the same exact config.

Thanks for any help you can offer!


On Tue, Jan 27, 2015 at 3:41 PM, Jens jens.nehlme...@gmail.com wrote:

 I am not sure if that also applies to GWT 2.7 as I am using GWT trunk but
I had to delete SDM caches to let changes to logging configuration take
effect. When SDM starts it tells you which workDir it uses for compilation.
Next to that workDir SDM also creates a cache directory named
gwt-cache-some hash. Simply delete all these cache folders and also the
workDir itself. Then start SDM again to give it a clean start.

 When you inherit Logging.gwt.xml then GWT will, by default, only log
SEVERE and everything else will be compiled out. If you want a lower level
then you need to use

 set-property name=gwt.logging.enabled value=TRUE/
 set-property name=gwt.logging.logLevel value=INFO/

 in your own module.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-web-toolkit/op5aX6OGmMA/unsubscribe
.
 To unsubscribe from this group and all its topics, 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 http://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 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT 2.7 Incremental Build

2015-01-27 Thread Martin Kersten
Hi all,

   I just noticed that 2.7 seams to support incremental build? Is that 
right? How efficient is it?


Thanks,

Martin (Kersten)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: gwt 2.7 And speed tracer?

2015-01-27 Thread Thomas Broyer
SpeedTracer appears to be dead (it hadn't been updated for a while anyway) 
and seems to have been removed form the Chrome Web Store.
AFAIK, most (if not all) of what it was doing is now available in Chrome 
Dev Tools directly.

On Tuesday, January 27, 2015 at 2:43:40 PM UTC+1, Clement Boret wrote:

 Hi.
 My app is running slow and I saw that speed tracer is supposed to help. me 
 in finding where and why things are slow

 HOWEVER I really have issues:

 1)On the official page 
 https://developers.google.com/web-toolkit/speedtracer/get-started#downloading
  
  it seems that the link to install speed tracer chrome extension is 
 out... (where can I found the chrome extension compatible with the tools 
 that I am using?)

 2) when in eclipse I try to use the speed tracer porfile... in the end I 
 have an error message:
 An internal error occurred during: Launching barter01 using Speed Tracer.
 Could not initialize class 
 com.google.gwt.eclipse.core.speedtracer.SourceViewerServer




 for information I use 
 chrome Version 40.0.2214.91 m
 GWT 2.7
 eclipse 4.4.1 and the google plugin for eclipse 


 thank you for your help


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Error migrating to GWT 2.7.0 (script tags in the gwt.xml files)

2015-01-27 Thread ssg
 Hi All,
I am getting the following error while running ANT Build.xml; Please help 
me in correcting the following.

*[java]   [ERROR] The Cross-Site-Iframe linker does not support 
script tags in the gwt.xml files, but the gwt.xml file (or the gwt.xml 
files which it includes) contains the following script tags: *

* [**java**] js/ext/adapter/ext/ext-base.js*

* [**java**] js/ext/ext-all.js*
* [java] In order for your application to run correctly, you will need 
to include these tags in your host page directly. In order to avoid this 
error, you will need to remove the script tags from the gwt.xml file, or 
add this property to the gwt.xml file: set-configuration-property 
name='xsiframe.failIfScriptTag' value='FALSE'/*

Based on the above message, 
*STEP 1:*
  How do I include these tags in the host page? WHERE is the host page and 
WHAT all tags I have to include in the host page ?

*STEP 2:*
 I have added *set-configuration-property name='xsiframe.failIfScriptTag' 
value='FALSE'/ *to my gwt.xml file. 

*Below is my gwt.xml code;*

?xml version=1.0 encoding=UTF-8?
!--!DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 
1.7.0//EN 
http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd;--
!DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 2.7.0//EN 
http://www.gwtproject.org/doctype/2.7.0/gwt-module.dtd;
module
inherits name=com.google.gwt.user.User /
inherits name='com.google.gwt.json.JSON' /
!-- Inherit the GWTEXT stuff.--
stylesheet src=js/ext/resources/css/ext-all.css /

set-configuration-property name='xsiframe.failIfScriptTag' 
value='FALSE'/

script src=js/ext/adapter/ext/ext-base.js /
script src=js/ext/ext-all.js /
inherits name=com.gwtext.GwtExt /
inherits name=com.gwtextux.GwtExtUx /

!-- RPC service servlet declarations --
servlet path=/appname.rpc 
class=com.acg.mmsea.server.service.AppnameServiceImpl /
servlet path=/codeDecode.rpc

class=com.acg.appname.server.service.AppnameCodesDecodeServiceImpl /

!-- Specify the app entry point class. --
entry-point class='com.acg.appname.gwt.client.Appname' /
/module

Thanks a lot in advance.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Error migrating to GWT 2.7.0 (script tags in the gwt.xml files)

2015-01-27 Thread Jim Douglas
Yeah, this was a hassle for me too.  This is the breaking change in 2.7.0:

https://code.google.com/p/google-web-toolkit/issues/detail?id=8578

I did a few things to bridge the gap from 2.6.1 to 2.7.0.

(1) Add this to the project.gwt.xml to not crash on those script tags:

  set-configuration-property name='xsiframe.failIfScriptTag' 
value='FALSE'/

(2) Add this to my GWT client entry point (details will vary depending on 
your specific .js files):

@Override

public void onModuleLoad()

{

if (Browser.isJQueryLoaded()) // GWT 2.6.1 script tags are 
supported

{

if (!Browser.isTouch())

Browser.setTooltips(BUISupport.initJQueryTooltip());

}

else // GWT 2.7.0+; we need to load external script files.

{

ListString injectList = new ArrayListString();

injectList.add(html2canvas.min.js);

injectList.add(jquery-1.11.1.min.js);

injectList.add(jquery-ui.min.js);

inject(injectList);

}
...

public static native boolean isJQueryLoaded()

/*-{

return (typeof $wnd.jQuery != 'undefined');

}-*/;

private void inject(final ListString p_jsList)

{

final String js =

GWT.getModuleBaseForStaticFiles() + p_jsList.remove(0);


ScriptInjector.fromUrl(js).setCallback(new CallbackVoid, 
Exception()

{

@Override

public void onFailure(Exception e)

{

Log.log(inject  + js +  failure  + e);

}


@Override

public void onSuccess(Void ok)

{

if (!p_jsList.isEmpty())

inject(p_jsList);

else if (!Browser.isTouch())

Browser.setTooltips(BUISupport.initJQueryTooltip());

}

}).setWindow(ScriptInjector.TOP_WINDOW).inject();

}

On Tuesday, January 27, 2015 at 9:20:53 AM UTC-8, ssg wrote:

  Hi All,
 I am getting the following error while running ANT Build.xml; Please help 
 me in correcting the following.

 *[java]   [ERROR] The Cross-Site-Iframe linker does not support 
 script tags in the gwt.xml files, but the gwt.xml file (or the gwt.xml 
 files which it includes) contains the following script tags: *

 * [**java**] js/ext/adapter/ext/ext-base.js*

 * [**java**] js/ext/ext-all.js*
 * [java] In order for your application to run correctly, you will need 
 to include these tags in your host page directly. In order to avoid this 
 error, you will need to remove the script tags from the gwt.xml file, or 
 add this property to the gwt.xml file: set-configuration-property 
 name='xsiframe.failIfScriptTag' value='FALSE'/*

 Based on the above message, 
 *STEP 1:*
   How do I include these tags in the host page? WHERE is the host page 
 and WHAT all tags I have to include in the host page ?

 *STEP 2:*
  I have added *set-configuration-property 
 name='xsiframe.failIfScriptTag' value='FALSE'/ *to my gwt.xml file. 

 *Below is my gwt.xml code;*

 ?xml version=1.0 encoding=UTF-8?
 !--!DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 
 1.7.0//EN 
 http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd
 --
 !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 2.7.0//EN 
 http://www.gwtproject.org/doctype/2.7.0/gwt-module.dtd;
 module
 inherits name=com.google.gwt.user.User /
 inherits name='com.google.gwt.json.JSON' /
 !-- Inherit the GWTEXT stuff.--
 stylesheet src=js/ext/resources/css/ext-all.css /

 set-configuration-property name='xsiframe.failIfScriptTag' 
 value='FALSE'/

 script src=js/ext/adapter/ext/ext-base.js /
 script src=js/ext/ext-all.js /
 inherits name=com.gwtext.GwtExt /
 inherits name=com.gwtextux.GwtExtUx /

 !-- RPC service servlet declarations --
 servlet path=/appname.rpc 
 class=com.acg.mmsea.server.service.AppnameServiceImpl /
 servlet path=/codeDecode.rpc
 
 class=com.acg.appname.server.service.AppnameCodesDecodeServiceImpl /

 !-- Specify the app entry point class. --
 entry-point class='com.acg.appname.gwt.client.Appname' /
 /module

 Thanks a lot in advance.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to Find RTL (or) LTR themes Loaded In GWT application?

2015-01-27 Thread Thomas Broyer
Not sure if that's you're looking for but 
LocaleInfo.getCurrentLocale().isRTL() will tell you if the current locale 
is RTL vs. LTR.

On Tuesday, January 27, 2015 at 2:55:21 PM UTC+1, Mohammed Sameen wrote:

 Hi,
 In my GWT Application, I need to support multiple languages like 
 english,arabic,hebrew langauages and also i am using LTR and RTL themes in 
 module.gwt.xml.But internally in my application i need to know which themes 
 is loading (RTL,LTR).Since i need to write some logic in my application for 
 both cases.So how can i identify the themes(RTL or LTR)?Any Suggestion?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.