Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 711983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:47:50+00:00 2026-05-14T04:47:50+00:00

I have an AWT applet application that needs to be ported over to GWT.

  • 0

I have an AWT applet application that needs to be ported over to GWT. The applet screens are described in meta data and the applet renders each screen dynamically using reflection.

We’d like the same thing in GWT/ExtGWT.

I’ve built a working version of this ExtJS whereby the metadata is turned into ExtJS Screen configs in the form of JSON. The drawback with this approach is the “wiring” of controls to data needs to be written in Javascript.

GWT is preferred since it’d be all Java code, no JS. Upon digging in it’s possible to render the screens using GWT off the metadata using GWT.create().

The problem I’m having is the wiring to hook a dynamically created button for example to an event handler requires reflection which is not supported in GWT.

Is this conclusion correct? and if so, are there any other ways to achieve this type of dynamic UI using ExtGWT?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:47:51+00:00Added an answer on May 14, 2026 at 4:47 am

    For extGWT where we don’t have declarative UI’s the easiest solution might be to just add a mapping/config your handlers in java which refer to instantiated classes. of the handlers, i.e.:

    Map<String, ActionListener> mapping = new HashMap<String, ActionListener>();
    mapping.put("HandleClicked", new HandleClickedActionListener());
    

    then you can try to find an implementing class for your meta data.

    For pure GWT 2 you can take a look at http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideUiBinder.html#Simple_binding on how it’s done there. it might be possible to create a similiar solution which annotated methods for you own extgwt solution like the one in gwt.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java Applet that uses AWT. In some (rare) circumstances, the platform
We have a Java Applet built using AWT. This applet lets you select pictures
I have an applet that throws this exception when trying to communicate with the
I have a java applet built using awt. I draw some text on a
I have created a Java Applet that will be used in IE to print
I have subclassed java.awt.Frame and have overridden the paint() method as I wish to
I have a Serializable object which is supposed to hold a java.awt.Image as its
I have this simple Jsp page: <%@ page language=java import=java.awt.Color%> <% Color background =
I have those maps in my repository. public IQueryable<AwType> GetAwTypes() { return from awt
I have a SWT app that opens a OpenGL window (using the LWJGL library)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.