• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GWT Dev mode Changes in the Java class is not reflecting when refresh the browser

 
Marianandan Arockiasamy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have an issue with GWT development mode. Recently I migrated grom GWT 1.6 to GWT 2.0.4 in my current project. I also use Eclipse 3.5, GXT 2.2.0, JDK 1.6 and Jetty as development environment.

I have to spend lot of time every time whenever make even a small change in my client side / Server side java class, I need to do GWT Compile which is a full compile which might take atleast 5 mins.

I tried to refresh the browser and expecting the changes would be relfecting as it was doing in the GWT 1.6 hosted mode environment. But, It never happened.

I am badly need to fix this issue because my development activity has been slowdown due to this issue.

I would appreciate any sort of help on this.

Thanks
Mari
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

You do not need a full compile.
Change your source.
Save your source.
Reload browser.
 
Marianandan Arockiasamy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maneesh,

Thanks for your reply.

The way you have told works only when we use GWT 1.7 or lesser versions (hosted mode). If we use GWT 2.0.0/2.0.3/2.0.4 etc., the development mode is opened from any browser (ie/firefox etc.,) instead of the hosted mode which used to be for older versions.

So, my issue still remains irrespective of I save the soource code changes for client side/server side java class. The changes are not reflected in the browser when refresh the browser/reload the development mode server.

Also, I noticed the normal GWT 2.0.3/2.0.4 sample projects (gwt 2.0.4/eclipse 3.5/jdk 1.6 and without gxt ) which comes along with gwt source , reflects the changes done in client/server side java classes just by refreshing the browser. But, in my case my development environment is gwt 2.0.4/gxt 2.2.0/eclipse 3.5/jdk 1.6.

Any thought on this?.

Once again thanks for trying to help me out.

-Mari


 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds strange. My last two apps were with 2.x and I did not encounter this issue. However I was not using GXT so that is one variable.
Are you using the eclipse plugin as well as the browser plugin?
 
Marianandan Arockiasamy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maneesh,

I am using both eclipse plugin and browser plugin. But no luck. Still the issue is same.

-Mari
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry I cannot offer any solution.
For me, when I change anything on the client side, I just need to save the source and refresh the browser.
For any server side changes including the Remote and Async interfaces, I need to restart the server (I never need to recompile. Restarting jetty does the trick)

PS. Can you drop the GXT and see if the problem persists? Maybe its got to do with GXT?
 
salvin francis
Bartender
Posts: 1263
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have worked on GWT for a year and GXT for almost 6 months,
Never faced this issue.
 
Sonnix Jackson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i am getting the same issue while using GWT2.0.4.

Before i can see my changes i need to compile each time.

Did you find a workaround on this?

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic