Is it possible to use Java Reflection to dynamically load a Class (Panel) by selecting the Class name from a database and then invoke the Class method(Create Panel) through smartgwt? My goal is to dynamically determine which panels used based a value from a database table.
I get the sense this is not possible based on the following error:
21:32:27.483 [ERROR] [showcase] Line 3: The import java.lang.reflect cannot be resolved
I have the imports for Reflection.
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
Even if Java Reflection can't be used maybe there is an alternative solution I could employ.
Thanks,
John Haigh
I get the sense this is not possible based on the following error:
21:32:27.483 [ERROR] [showcase] Line 3: The import java.lang.reflect cannot be resolved
I have the imports for Reflection.
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
Even if Java Reflection can't be used maybe there is an alternative solution I could employ.
Thanks,
John Haigh
Comment