GXT 2.3.1 to 4.0.2 migration

114 views
Skip to first unread message

Lorenzo Aditi

unread,
Aug 5, 2022, 3:34:02 PM8/5/22
to GWT Users
Hello,

We used to have GWT 2.4 & GXT 2.2.5 and we migrated to GWT 2.8.1.

Now I am using GWT 2.8 with gxt 2.2.5 and Jdk 1.8.0_291, even when upgrading gxt-2.3.1a-gwt22 I still get this error when maven is building I got this error

jar:file:/war/WEB-INF/lib/gxt-2.3.1a-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java' > Line 322: The method append(boolean) is ambiguous for the type > StringBuffer

After searching I thought it is imposible to resolve it, I don't have the right to edit the dependency.

So I decided to upgrade gxt to 4.0.2, am I right?

but when I did all the app broke, most of the Types don't exist anymore and the migration is not well documented on sencha website, they provide a unique page that doesn't help.

Do you have  a tutorial or a guide that helps? or maybe a workaround?

Thanks

Ricardo Serathiuk

unread,
Aug 5, 2022, 4:19:54 PM8/5/22
to google-we...@googlegroups.com
Try to change the line 322 of ListField to this:
sb.append(m.get(prop).toString());



--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/2c202184-3d3b-4f3f-a547-50e488d4c244n%40googlegroups.com.

Lorenzo Aditi

unread,
Aug 5, 2022, 6:42:38 PM8/5/22
to GWT Users
How to change that? It is a .class file (compiled) of a the gxt dependency. I don't have the hand over that.
Do you mean creating a class that extends ListField and overriding that method? If so is there a way in java to tell the compiler to use the overidden class instead?

Lorenzo Aditi

unread,
Aug 6, 2022, 9:49:46 AM8/6/22
to GWT Users
do you mean to unzip the jar, modify the .java file, compile it and zip into a jar ?

Le vendredi 5 août 2022 à 22:19:54 UTC+2, Ricardo Serathiuk a écrit :

Jens

unread,
Aug 6, 2022, 9:53:47 AM8/6/22
to GWT Users
You can create the same java file in the same package in your project's source directory and then adjust the implementation. It should then override the one in your dependencies.

-- J.

Ricardo Serathiuk

unread,
Aug 6, 2022, 10:28:02 AM8/6/22
to google-we...@googlegroups.com
I have described in another thread about patches in GXT. The link:

You can extract all the source code of the GXT jar and created a repository for your company, or put all the source code in the same repository of your app. The GXT 2.x is deprecated, for that reason, I believe the best choice is you create a fork of GXT 2.x.

Reply all
Reply to author
Forward
0 new messages