Wednesday, December 17, 2014

Re: (New to GWT) Need advise in migrating current app from GWT 1.7.0

Thanks a lot Jens.
As I am new to GWT & development, I have done the following based on current App gwt1.7.0
1) I have downloaded standalone GWT SDK 2.7.0
2) Current build.xml file using HostedMode as follows
    <target name="hosted" depends="javac" description="Run hosted mode">
    <java failonerror="true" fork="true" classname="com.google.gwt.dev.HostedMode">
Should I change the above lines to  SuperDevMode ?  

3) Current App gwt 1.7.0 is using some GWT jar files under directory \WebContent\WEB-INF\lib. I have replaced these gwt jars (gwt-user, get-servlet,                gwt-servlet-deps) with the latest 2.7.0 jars.
     This directory also has jdom, jettison-1.0.1, json, gwtext & gwtextux jars. Do I have to replace all these with the latest jars or only the gwtext & gwtextux jars ?

I found gwtext-2.0.5 at http://gwt-ext.com/download/. Is this the latest and the right one for migrating to gwt 2.7.0 ?
I found gwtextux.jar at http://www.java2s.com/Code/Jar/CatalogJar.htm

4) My current xxxxx.gwt.xml file 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">
<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" />
    <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="/xxxxx.rpc" class="com.acg.mmsea.server.service.XxxxxServiceImpl" />
    <servlet path="/codeDecode.rpc"
        class="com.acg.xxxxx.server.service.XxxxxCodesDecodeServiceImpl" />

    <!-- Specify the app entry point class. -->
    <entry-point class='com.acg.xxxxx.gwt.client.Xxxxx' />

</module>


In the above code I  have modified/changed the first line FROM
<!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"> 
         TO

<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN" "https://gwt.googlesource.com/gwt/+/2.7.0/distro-source/core/src/gwt-module.dtd">
Is this modification correct?
Is there anymore changes I need to do in this xxxxx.gwt.xml file ?

Thanks a lot in advance for your time.

On Wednesday, December 17, 2014 12:34:49 PM UTC-5, Jens wrote:
Upgrading from 1.7 will probably mean quite some work anyways. 

So I would go with 2.7 because it has a much faster SuperDevMode which is important because up-to-date Chrome/FireFox/Opera/Safari do not support classic GWT DevMode anymore.

The only really important difference between 2.6.1 and 2.7 (beside bug fixes and SuperDevMode improvements) is that 2.7 does not support Internet Explorer 6 / 7 and Opera <= 12 anymore. If you need to support these browsers then you can not use 2.7.0.

-- 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+unsubscribe@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.

No comments:

Post a Comment