コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.
解決済み

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 受け入れられたソリューション

Avatar

正解者
Level 2

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

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

元の投稿で解決策を見る

4 返信

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.

Avatar

Level 2

@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

Community Advisor

Avatar

正解者
Level 2

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

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