@Model(
adaptables = SlingHttpServletRequest.class,
adapters = CheckBox.class,
defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL
)
@Exporter(
name = ExporterConstants.SLING_MODEL_EXPORTER_NAME,
extensions = ExporterConstants.SLING_MODEL_EXTENSION)
public class CheckBoxImpl implements CheckBox {
}
how exactly could I extend this form component ?
Solved! Go to Solution.
Views
Replies
Total Likes
If you're using AEMaaCS, you should replace "aemfd-client-sdk" with "aem-forms-sdk-api".
<!-- AEM Cloud -->
<core.forms.components.version>2.0.36</core.forms.components.version>
<core.forms.components.af.version>2.0.36</core.forms.components.af.version>
<aem.forms.sdk.api>2023.08.03.00-230702</aem.forms.sdk.api>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>aem-forms-sdk-api</artifactId>
<version>${aem.forms.sdk.api}</version>
</dependency>
<!-- AEM 6.5 -->
<core.forms.components.version>1.1.24</core.forms.components.version>
<core.forms.components.af.version>1.1.24</core.forms.components.af.version>
<aem.forms.sdk.api>6.0.1016</aem.forms.sdk.api>
<dependency>
<groupId>com.adobe.aemfd</groupId>
<artifactId>aemfd-client-sdk</artifactId>
<version>${aem.forms.sdk.api}</version>
</dependency>
Checkbox is part of AEM forms core components .Have you installed the same in your instance.
https://github.com/adobe/aem-core-forms-components
Hello @sherinregi
Yeah i did and still not working
is there a way to add the form core component to my own project?
@sherinregi
Form core components depends on aem sites core components as foundation so will have to keep in mind the dependency.
Can you please check if the below requirement is met and also are you getting anything in error.log even after installing the packages
i did that before its adding the app files
not the core models @sherinregi
Did you trying executing
mvn clean install -PautoInstallAll
Also look for any errors in error.log
Hi @MohammedSkouti,
I've included the Forms Core Components in one of our projects.
For detailed changes and procedures, you can refer to this GitHub commit:
https://github.com/MahediSabuj/aem-react-spa/commit/b302dd8cd87c48b5b93509c050099a7a3dbf02f4
@Mahedi_Sabuj Hi
when I add the dependencies i got this error
e deprecated and will not be part of the AEM SDK after April 2023 Deprecated since 2022-12-01 For removal : 2023-04-01 (com.adobe.aem.guides:aem-guides-wknd.all:0.0.1-SNAPSHOT)
[ERROR] The analyser found the following errors for author and publish :
[ERROR] [api-regions-exportsimports] com.adobe.aem:core-forms-components-core:1.1.24: Bundle core-forms-components-core:1.1.24 is importing package(s) [com.adobe.cq.commerce.api, com.adobe.cq.commerce.common] in start level 20 but no bundle is exporting these for that start level. (com.adobe.aem.guides:aem-guides-wknd.all:0.0.1-SNAPSHOT)
[ERROR] [api-regions-exportsimports] com.adobe.aem:core-forms-components-core:1.1.24: Bundle core-forms-components-core:1.1.24 is importing package(s) [Package com.adobe.cq.dam.cfm.con
verter;version=[1.3,2), Package com.adobe.cq.dam.cfm.content;version=[1.3,2), Package com.day.cq.dam.api.handler;version=[2.1,3), Package com.adobe.aemds.guide.utils;version=[3.11,4)] in start level 20 but no visible bundle is exporting these for that start level in the required version range. (com.adobe.aem.guides:aem-guides-wknd.all:0.0.1-SNAPSHOT)
[ERROR] [api-regions-exportsimports] com.adobe.aem:core-forms-components-af-core:1.1.24: Bundle core-forms-components-af-core:1.1.24 is importing package(s) [com.adobe.cq.commerce.api, com.adobe.cq.commerce.common] in start level 20 but no bundle is exporting these for that start level. (com.adobe.aem.guides:aem-guides-wknd.all:0.0.1-SNAPSHOT)
[ERROR] [api-regions-exportsimports] com.adobe.aem:core-forms-components-af-core:1.1.24: Bundle core-forms-components-af-core:1.1.24 is importing package(s) [Package com.adobe.aemds.gu
ide.service;version=[3.11,4), Package com.adobe.cq.dam.cfm.converter;version=[1.3,2), Package com.adobe.aemds.guide.model;version=[1.1,2), Package com.adobe.cq.dam.cfm.content;version=
[1.3,2), Package com.adobe.aemds.guide.common;version=[3.12,4), Package com.day.cq.dam.api.handler;version=[2.1,3), Package com.adobe.aemds.guide.utils;version=[3.11,4)] in start level 20 but no visible bundle is exporting these for that start level in the required version range. (com.adobe.aem.guides:aem-guides-wknd.all:0.0.1-SNAPSHOT)
If you're using AEMaaCS, you should replace "aemfd-client-sdk" with "aem-forms-sdk-api".
<!-- AEM Cloud -->
<core.forms.components.version>2.0.36</core.forms.components.version>
<core.forms.components.af.version>2.0.36</core.forms.components.af.version>
<aem.forms.sdk.api>2023.08.03.00-230702</aem.forms.sdk.api>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>aem-forms-sdk-api</artifactId>
<version>${aem.forms.sdk.api}</version>
</dependency>
<!-- AEM 6.5 -->
<core.forms.components.version>1.1.24</core.forms.components.version>
<core.forms.components.af.version>1.1.24</core.forms.components.af.version>
<aem.forms.sdk.api>6.0.1016</aem.forms.sdk.api>
<dependency>
<groupId>com.adobe.aemfd</groupId>
<artifactId>aemfd-client-sdk</artifactId>
<version>${aem.forms.sdk.api}</version>
</dependency>
@Mahedi_Sabuj
Unresolved dependency: 'com.adobe.aem:aem-forms-sdk-api:jar:2023.08.03.00'
[ERROR] The analyser found the following errors for author and publish :
[ERROR] [api-regions-exportsimports] com.adobe.aem:core-forms-components-core:1.1.24: Bundle core-forms-components-core:1.1.24 is importing package(s) [com.adobe.cq.commerce.api, com.adobe.cq.commerce.common] in start level 20 but no bundle is exporting these for that start level. (com.adobe.aem.guides:aem-guides-wknd.all:0.0.1-SNAPSHOT)
[ERROR] [api-regions-exportsimports] com.adobe.aem:core-forms-components-core:1.1.24: Bundle core-forms-components-core:1.1.24 is importing package(s) [Package com.adobe.cq.dam.cfm.con
verter;version=[1.3,2), Package com.adobe.cq.dam.cfm.content;version=[1.3,2), Package com.day.cq.dam.api.handler;version=[2.1,3), Package com.adobe.aemds.guide.utils;version=[3.11,4)] in start level 20 but no visible bundle is exporting these for that start level in the required version range. (com.adobe.aem.guides:aem-guides-wknd.all:0.0.1-SNAPSHOT)
[ERROR] [api-regions-exportsimports] com.adobe.aem:core-forms-components-af-core:1.1.24: Bundle core-forms-components-af-core:1.1.24 is importing package(s) [com.adobe.cq.commerce.api, com.adobe.cq.commerce.common] in start level 20 but no bundle is exporting these for that start level. (com.adobe.aem.guides:aem-guides-wknd.all:0.0.1-SNAPSHOT)
[ERROR] [api-regions-exportsimports] com.adobe.aem:core-forms-components-af-core:1.1.24: Bundle core-forms-components-af-core:1.1.24 is importing package(s) [Package com.adobe.aemds.gu
ide.service;version=[3.11,4), Package com.adobe.cq.dam.cfm.converter;version=[1.3,2), Package com.adobe.aemds.guide.model;version=[1.1,2), Package com.adobe.cq.dam.cfm.content;version=
[1.3,2), Package com.adobe.aemds.guide.common;version=[3.12,4), Package com.day.cq.dam.api.handler;version=[2.1,3), Package com.adobe.aemds.guide.utils;version=[3.11,4)] in start level 20 but no visible bundle is exporting these for that start level in the required version range. (com.adobe.aem.guides:aem-guides-wknd.all:0.0.1-SNAPSHOT)
You need to update <aem.forms.sdk.api> value with the AEM Forms Add-On package you have installed.
Please update the version with the following.
<aem.forms.sdk.api>2023.08.03.00-230702</aem.forms.sdk.api>
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies