tags:

views:

25

answers:

1

Anyone know how to tell what mode an GWT 2.0 app is currently running at?

The idea is that i could do something like:

if(GWT.whatIsYourmode() == 'dev')
  //run some code
else
  //run some different code
+3  A: 

I think what you're looking for is GWT.isClient(), GWT.isProdMode() or GWT.isScript(). You can find the Javadoc here.

Arthur Kalmenson