2 Replies Latest reply on Jun 3, 2013 12:42 PM by xybrek

    Making Errai work with GXT

    xybrek

      I'm getting this error when trying to use Sencha GXT with Errai:

       

      [ERROR] Caused by: org.jboss.errai.codegen.exception.GenerationException: The method 'getAssociatedType()' in the event [ClickEvent] does not return Type<? extends EventHandler>..

      [ERROR]      at org.jboss.errai.ui.rebind.DecoratorTemplated.getHandlerForEvent(DecoratorTemplated.java:447)

      [ERROR]      at org.jboss.errai.ui.rebind.DecoratorTemplated.generateEventHandlerMethodClasses(DecoratorTemplated.java:318)

      [ERROR]      ... 38 more

       

      For:

       

      @Inject

      @DataField

      TextField text;

       

      Is there a workaround with making Errai work with GXT?

       

      Also, I would like to know the limitation in integrating these two nice framework.

        • 1. Re: Making Errai work with GXT
          jfuerth

          Hi,

           

          I don't believe the field declaration you've provided could lead to the error message you've quoted.

           

          Please provide a fully-compilable class (including all import statements) and a list of the maven deps we need to build it, and we'll dig into this error to try and help you through the problem.

           

          Cheers,

          Jonathan

          • 2. Re: Making Errai work with GXT
            xybrek

            Hi,

             

            Yes you're right, that error was for something else. After doing a mvn clean, I managed to get GXT 3.0 form fields, TextField, etc. to work with Errai, and even the GXT validation is working. Cool.

             

            Cheers,

            Xybrek