Add Custom Component via SSJS (UIIncludeComposite, FacesPageDriver)

Hi,

I’m developing a Xpage Portal for use inside the client and i want to implement each “portlet” as a custom component, that gets dynamically inserted into the main page to make it 100% customisable.

My problem is I can dynamically create the normal components like tables,… but to create a custom component i need to get access to the FacesPageDriver-Object to call “myComponent.setPageDriver(FacesPageDriver)” or the element won’t be created.

Does anyone know how to get this Object from SSJS?

Thanks

Mario