Create a target component programmatically
Hi,
I would like to create a target component (sling:resourceType should be cq/personalization/components/target) programmatically.
My scenario is as follows:
- I have a par component_A that has a rendering file component_A.html. This HTML render file calls a JSP file using the following sightly statement
<sly data-sly-include="componentCreator.jsp" data-sly-unwrap />
- the included "componentCreator.jsp" should then create a target component and pass it to component_A
Does anybody know how to achieve this? Any help would be appreciated.
Regards, Abou