AEM 6.5: Policy is not applied for a component when its in another component | Community
Skip to main content
Level 2
April 11, 2024
Solved

AEM 6.5: Policy is not applied for a component when its in another component

  • April 11, 2024
  • 2 replies
  • 1213 views

I have componentA and it has policies. They are getting applied when its added in the page. But not when componentA is added in another component.

It would be great if anyone could provide path forward.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Rajendar_Gangan

When a component is included in another component using data-sly-resource its missing 

decoration='true'. Its good after adding it.
 
Thanks

2 replies

Anudeep_Garnepudi
Community Advisor
Community Advisor
April 11, 2024

@rajendar_gangan 

 

If the container component has design dialog (you can see wheel icon in template editor mode) then you need to set policies for the container component, you can re-use the existing policies.

AG
Level 2
April 11, 2024

@anudeep_garnepudi 

It's not about reusing policies. A component polices not getting applied, though I can see them in policies, when its included in another component. Could not see them in html if inspected.

 

Thanks

arunpatidar
Community Advisor
Community Advisor
April 12, 2024
Rajendar_GanganAuthorAccepted solution
Level 2
April 17, 2024

When a component is included in another component using data-sly-resource its missing 

decoration='true'. Its good after adding it.
 
Thanks