my dog learned polymorphism*
The moose likes GWT and the fly likes GWT Dev mode Changes in the Java class is not reflecting when refresh the browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT Dev mode Changes in the Java class is not reflecting when refresh the browser " Watch "GWT Dev mode Changes in the Java class is not reflecting when refresh the browser " New topic
Author

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

Marianandan Arockiasamy
Greenhorn

Joined: Sep 27, 2010
Posts: 3
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

Joined: Jul 26, 2007
Posts: 10175
    
    8

Welcome to the Ranch.

You do not need a full compile.
Change your source.
Save your source.
Reload browser.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Marianandan Arockiasamy
Greenhorn

Joined: Sep 27, 2010
Posts: 3
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

Joined: Jul 26, 2007
Posts: 10175
    
    8

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

Joined: Sep 27, 2010
Posts: 3
Hi Maneesh,

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

-Mari
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175
    
    8

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
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

I have worked on GWT for a year and GXT for almost 6 months,
Never faced this issue.


My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
Sonnix Jackson
Greenhorn

Joined: Oct 12, 2010
Posts: 1
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: GWT Dev mode Changes in the Java class is not reflecting when refresh the browser
 
Similar Threads
GWT Applications - Questions for the author
GWT ... Platform and browser compliance?
style guide
Cannot understand Hotdeploy or exploded format (jboss:deploy-exploded-warfile vs cargo) goals
Maven - compile into a jar and war the same time