Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

why the CheckBox Interface not defined when i am trying to extend the form component

Avatar

Level 3

@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 ? 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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>

 

 

View solution in original post

11 Replies

Avatar

Level 3

is there a way to add the form core component to my own project?
@sherinregi 

 

Avatar

Level 8

Hi @MohammedSkouti 

 

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

 

sherinregi_0-1694364348094.png

 

 

Avatar

Level 8

@MohammedSkouti 

Did you trying executing 

mvn clean install -PautoInstallAll

 

Also look for any errors in error.log

 

Avatar

Community Advisor

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 

Avatar

Level 3

@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)

Avatar

Correct answer by
Community Advisor

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>

 

 

Avatar

Level 3

@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)

 

Avatar

Community Advisor

You need to update <aem.forms.sdk.api> value with the AEM Forms Add-On package you have installed.

Screenshot 2023-09-11 at 3.54.09 PM.png

Please update the version with the following. 

<aem.forms.sdk.api>2023.08.03.00-230702</aem.forms.sdk.api>