Hi,

I have a moderately complex object graph built from about 630 classes in 
total each of which is associated with an Editor. I use the EditorVisitor 
pattern to traverse the Editor graph. For example I can traverse the Editor 
graph and build a Tree with Anchors which link to each Editor instance, 
enabling me to dynamically switch Editors in and out of the UI. This works 
well in both DevMode and Production mode.

Now I thought I could use the EditorVisitor to dynamically create new 
objects based on Strings. This works in DevMode as follows:

    public <T> boolean visit(EditorContext<T> ctx) {

            // The EditorVisitor ought to be able to add objects 
dynamically.
            if 
(ctx.getEditedType().getName().equals(fullyqualifiedObjectTypeString))) {
                T object = GWT.create(ctx.getEditedType());
                 ctx.setInModel(object);
            }*/

Doesn't work in production mode however so I have to resort to lots of long 
ugly conditionals. I think the problem is with GWT.create. I understand 
that GWT Generators could help.

Any thoughts?

Many thanks,

Neil

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/QlTzJpUZhKAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to