Issue in including the component
Hi All,
I am trying to include the componentB into componentA using the data-sly-resource with below syntax in the parent component (Component A)
<div data-sly-resource="${ 'title' @ resourceType='myproject/component/content/title '}"></div>
When I drag the component A, I am able to open the dialog box of component B and it throws an below error only for the first time when we try to open the dialog.
Error during include of component '/apps/myproject/components/content/componentB'
Error Message:
org.apache.sling.api.scripting.ScriptEvaluationException:
Processing Info:
I suspect because the node for componentB has not created under jcr:content of page path ,It is created once we open the dialog and add some configuration, Is there any way I can create the node manually for the component B when the parent component A is dragged on the page.
Thanks in advance,