Question

since the 2.6.0 release of GWT which dropped support of ie6 browser my current project which also uses GXT is failing to compile with the following error:

Loading inherited module 'com.sencha.gxt.ui.GXT'
        Loading inherited module 'com.sencha.gxt.data.Data'
           Loading inherited module 'com.sencha.gxt.core.Core'
              [ERROR] The value ie6 was not previously defined.
              [ERROR] Line 96: Unexpected exception while processing element 'set-property'

i tried to set <set-property name="gxt.user.agent" value="safari3, safari4, safari5, chrome, air, gecko1_8, gecko1_9"/> and the <extend-property name="user.agent" ....../> but without any success. Are there any workarounds on this?

Was it helpful?

Solution

GWT 2.6.0 has several breaking changes over GWT 2.4.0 and 2.5.1 - these don't affect all libraries, but they do affect both GXT 2 and 3. Code changes in GWT 2.6.0 that break libraries like GXT include:

  • Changing permutations (ie6 and opera are gone, ie10 was added, note that newer versions of opera are webkit based and do not need their own permutation)
  • Element added new final methods hasClassName and toggleClassName that can't compiled with XElement methods of the same name
  • String utils methods removed, switched to newer version of Guava (which now uses those methods)

Saw an upvote, so I know this is still getting readers months later, so editing this to point out that GXT 3.1.0 is in maven central and supports GWT 2.6.0, 2.6.1, and as of Friday anyway, supports GWT 2.7.0-SNAPSHOT. I can't promise it is totally future-proof, but as long no public methods in GWT change, it isn't likely to break again in the GWT 2.7 series.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top