Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 2

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

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

View solution in original post

4 Replies

Avatar

Community Advisor

@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.

@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

Avatar

Correct answer by
Level 2

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

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