Hi guys,
I'm trying some dumps for practice in testing, I could bring the following question to your attention?
From my experience I would have answered B, if I read the below documentation I understand that:
1)Customizing the Logic of a Core Component -> we need to use Sling delegation pattern, resourceSuperType: Answer B
2)Customizing the Markup-> we need to copy the HTL files that need to be modified from the Core Component into the proxy component:Answer D
but for certification purposes what will be the correct answer?
thanks in advance for your attention.
Regards,
Maurizio
Solved! Go to Solution.
Views
Replies
Total Likes
When we were using foundation component then we used to overlay the component from libs to apps with that approach we used to copy the component from libs to /apps but
with the core component we used to create the proxy in our application folder inside apps and refer the proxy with slingResourceSuperType to the respective core component.
So as question is specific to Core component only so Answer should be B not D.
As per me option D is applicable to only foundation component.
Hope this will help.
Umesh Thakur
When we were using foundation component then we used to overlay the component from libs to apps with that approach we used to copy the component from libs to /apps but
with the core component we used to create the proxy in our application folder inside apps and refer the proxy with slingResourceSuperType to the respective core component.
So as question is specific to Core component only so Answer should be B not D.
As per me option D is applicable to only foundation component.
Hope this will help.
Umesh Thakur
To be very simple, inheritance is only possible with sling:resourceSuperType it doesn't matter if it is core or custom component.
To answer your question, only option B is extending/inheriting a component rest others are not.
AG
@mauriziop158592,
I would also agree that the answer is B.
To extend the AEM core components, you should create a new proxy component in /apps/my-site, and then use sling:resourceSuperType as the base, and overlay (extend) as required.
Views
Likes
Replies
Views
Likes
Replies