You need to sign in to do that
Don't have an account?
CarlB
Dynamically creating component in apex
Hi,
In Apex it is now possible to create an instance of a Visualforce component using:
Component.c.MyCustomComponent myDy = new Component.c.MyCustomComponent();
It is also possible to instantiate an instance of a class using:
Type t = Type.forName('XXXXX');
t.newInstance();
I was wondering if there was any way to combine these two, as Type.forName('Component.c.MyCustomComponent') returns null.
Thanks,
Carl
:O(