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

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

  • April 11, 2024
  • 2 replies
  • 1210 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

arunpatidar
New Participant
April 12, 2024
Rajendar_GanganAuthorAccepted solution
New Participant
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
Anudeep_Garnepudi
New Participant
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.

New Participant
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