Hi,

Is there any way to get the following piece of code to work in script
mode:

                User u = (User)JavaScriptObject.createObject();

Where User is an interface I have defined. Currently I get an
classcast exception.

I'm looking for a way to fool gwt so a native javascript object will
be considered as an object of Type T where T for instance can be
'User'. What I look for is basically something similar to a proxy in
java, see http://java.sun.com/j2se/1.4.2/docs/api/java/lang/reflect/Proxy.html.
I do not wish that my interface should derive from the
JavaScriptObject, see http://www.infoq.com/news/2008/08/gwt_overlay_types

I guess I need some typeinformation on my native javascript object but
I have not been able to figure out what it should be and how it should
be added.

Best Regards
Niels

--~--~---------~--~----~------------~-------~--~----~
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