Hi,
I have article header, article next steps components. I would like to have a composite component "articlecontainer" that would be dropped in editable template.
issue is : if I drop article header, article insights components separately in editable template , when I click edit icon able to see dialog.
But, if I drop "articlecontianer" component in editable template , when I click on edit icon of included components, it is throwing 500 server error and dialog not displayed.
update1: simple components such as "helloworld" working fine. aricleheader, articleinsights components have policies and model classes throwing null pointer exception. I tried to see , if I can author policies but I could see only articlecontainer composite component in editabletemplate and not the components included through data-sly-resouce.
<div data-sly-test="${pageProperties.isArticlePage}">
<div itemscope itemtype="http://schema.org/Article">
<div data-sly-resource="${'key-insights' @ resourceType='pi-web/components/content/articleinsights'}" />
</div>
</div>
<div data-sly-test="${(wcmmode.edit || wcmmode.preview)}"
class="cq-placeholder ${classAppend}"
data-emptytext="${component.properties.jcr:title}${emptyTextAppend && ' - '}${emptyTextAppend}">
</div>
Above is htl code and below is component properties

UPDATE 2:
I tried to put null checks in code and created a page. The dialog coming up for article insights , but links dropdown is empty. data source servlet code, dialog model code screen shots below.




