List Info

Thread: Re: GWT.create() requirement for a class argument




Re: GWT.create() requirement for a class argument
user name
2008-02-23 10:15:33
Looks like the getClass() method will be a feature in 1.5

http://code.google.com/p/google-web-toolkit/issu
es/detail?id=370

David

On Feb 23, 1:15 am, Flapjack <david.lau...gmail.com> wrote:
> I understand that getClass() is not supported and that
I can obtain an
> objects classname using GWT.getTypeName(obj).  However
I would like to
> create objects using GWT.create() yet the class to be
created is
> determined at runtime, for example if the following
would work
> everything would be great:
>
> Object obj = map.get("xyz");
> BeanWrapper bean =
(BeanWrapper)GWT.create(GWT.getTypeName(obj));
>
> I can work around this issue for the majority of my
requirements by
> using a Generator and writing the class name to the
source
> dynamically; however the class I'm currently working
with is not
> generated.  Is it possible to have a method added of
> GWT.create("classpath")?
>
> Thanks.
> David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkitgooglegroups.com
To unsubscribe from this group, send email to
Google-Web-Toolkit-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )