PDA

View Full Version : How to convert String to LayoutContainer



Suma
17 Jul 2009, 12:15 AM
Hi,
I want to convert a String which is retrieved from database into a LayoutContainer.Kindly help me out as soon as possible.

Thanks in Advance.

stan229
17 Jul 2009, 9:19 AM
Are you storing source code in your database?

Suma
18 Jul 2009, 8:56 PM
I'm not storing the source code, i'm storing the name of the java class in database where i have written the source code. I'm retrieving the source code name from database and i want to call that class. To call this class i need to convert this string into LayoutContainer.

daddieke
19 Jul 2009, 12:11 AM
It looks like you want a reflection mechanism, something like Class.forName(...)
As far as I know, that is not supported in GWT. There is a gwt reflection project on sourceforge but I have no idea of the features it offers. You might try it out.