Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

how to include import com.adobe.cq.forms.core.components.internal.models.v1.form to the cloud project

Avatar

Level 3
 
1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Community Advisor

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/customiz...

Community Discussion Threads:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/com-adobe-cq-wcm-core-comp...
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/extending-core-components/...
 

Mahedi Sabuj

MS-29LinkedIn

Lösung in ursprünglichem Beitrag anzeigen

4 Antworten

Avatar

Community Advisor

Avatar

Korrekte Antwort von
Community Advisor

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/customiz...

Community Discussion Threads:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/com-adobe-cq-wcm-core-comp...
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/extending-core-components/...
 

Mahedi Sabuj

MS-29LinkedIn

Avatar

Level 3

Does that also work for extending form components ?

Avatar

Community Advisor

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.

Mahedi Sabuj

MS-29LinkedIn