Check again. That does NOT work. It might possibly work if you're
using -style detailed, and it might possibly work in hosted mode,
though with the suffix () I don't think so, as that isn't even a legal
javascript identifier character. In -style obf production mode, no
way.

On Jan 1, 7:51 am, Richard Kennard <[email protected]>
wrote:
> 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