Dynamically creating GWT screens using Metadata?

Posted by Francis Shanahan on Stack Overflow See other posts from Stack Overflow or by Francis Shanahan
Published on 2010-04-02T01:08:38Z Indexed on 2010/04/02 1:13 UTC
Read the original article Hit count: 523

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about gwt

Related posts about extjs