Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mahedi_Sabuj
Mahedi_SabujAccepted solution
Community Advisor
September 8, 2023

In general all models/classes located under internal package are not exported by Core (Forms) Components bundles. This means you cannot use them directly, this is done by design.

In other words the way how you implementation is done is incorrect, this is why the issue occurs. The proper way to extend Core Components model is to use delegation pattern.

Here you can find some information with examples:
https://github.com/adobe/aem-core-wcm-components/wiki/Delegation-Pattern-for-Sling-Models
https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/customizing.html?lang=en#customizing-the-logic-of-a-core-component

Community Discussion Threads:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/com-adobe-cq-wcm-core-components-internal-cannot-be-resolved/m-p/555795
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/extending-core-components/m-p/377916
 

Mahedi Sabuj

4 replies

Mahedi_Sabuj
Community Advisor
Mahedi_SabujCommunity AdvisorAccepted solution
Community Advisor
September 8, 2023

In general all models/classes located under internal package are not exported by Core (Forms) Components bundles. This means you cannot use them directly, this is done by design.

In other words the way how you implementation is done is incorrect, this is why the issue occurs. The proper way to extend Core Components model is to use delegation pattern.

Here you can find some information with examples:
https://github.com/adobe/aem-core-wcm-components/wiki/Delegation-Pattern-for-Sling-Models
https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/customizing.html?lang=en#customizing-the-logic-of-a-core-component

Community Discussion Threads:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/com-adobe-cq-wcm-core-components-internal-cannot-be-resolved/m-p/555795
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/extending-core-components/m-p/377916
 

Translate
Mahedi Sabuj
Level 3
September 8, 2023

Does that also work for extending form components ?

Translate
Mahedi_Sabuj
Community Advisor
Community Advisor
September 8, 2023

Yes, the same principle applies to form components within AEM Forms Core Components as well. They are built on the foundation of AEM Sites Core Components and extend them as needed.

Translate
Mahedi Sabuj