Jason, Reinier,

Thank you both for staying with me. I'm still a bit confused as to
what you're saying versus what I'm finding works. In my project
(Metawidget) I have some code that needs to dynamically reflect and
invoke a method.

Prior to the above discussion, I implemented this by doing...

        //
        // Native methods
        //

        /**
         * Invoke JavaScript method using special GWT naming convention
         */

        native void invokeMethod( Object obj, String type, String method )
        /*-{
                obj['@' + type + '::' + method + '()']();
        }-*/;

...which I then call by doing...

        invokeMethod( myObj, myObj.getClass().getName(), methodName );

...this code works great but, given what you're saying above, how?
Should it not work? Is it likely to break in future versions of GWT?

Regards,

Richard.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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