Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

vikrams57194913
vikrams57194913
Offline

Badges

Badges
9

Accepted Solutions

Accepted Solutions
0

Likes

Likes
11

Posts

Posts
13

Discussions

Discussions
12

Questions

Questions
1

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by vikrams57194913
Customize the badges you want to showcase on your profile
AEM GraphQL customization with page url in place of content fragment url - Adobe Experience Manager 26-11-2021
Hi, My requirement is to use graphql with the page level url, and then retrieve all the content fragment attached to that page, and provide the data back to front-end. Is there any reference for this type of customization of graphql with AEM. I understand the current implementation with content fragment model. Thanks.

Views

62

Likes

0

Replies

1
Re: Sling Model with custom selector not working in AEM 6.5 - Adobe Experience Manager 19-11-2021
But below code works for me @Model(adaptables = SlingHttpServletRequest.class,defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL, adapters = {PageExporter.class}, resourceType = PageExporterImpl.RESOURCE_TYPE)@exporter(name = ExporterConstants.SLING_MODEL_EXPORTER_NAME, selector = "mobile", extensions = ExporterConstants.SLING_MODEL_EXTENSION)public class PageExporterImpl extends PageImpl implements PageExporter {protected static final String RESOURCE_TYPE = "contentservices/components...

Views

718

Like

1

Replies

1
Re: Sling Model with custom selector not working in AEM 6.5 - Adobe Experience Manager 19-11-2021
package ca.sunlife.web.contentservices.core.impl;import com.adobe.cq.export.json.ComponentExporter;import com.adobe.cq.export.json.ExporterConstants;import com.day.cq.wcm.api.NameConstants;import com.day.cq.wcm.api.Page;import lombok.experimental.Delegate;import org.apache.sling.api.SlingHttpServletRequest;import org.apache.sling.api.resource.ValueMap;import org.apache.sling.models.annotations.DefaultInjectionStrategy;import org.apache.sling.models.annotations.Exporter;import org.apache.sling.mo...

Views

719

Like

1

Replies

0
Re: Sling Model with custom selector not working in AEM 6.5 - Adobe Experience Manager 19-11-2021
Getting below error with the above code:Error during include of component '/apps/contentservices/components/structure/page'Error Message: org.apache.sling.models.factory.MissingElementsException: Could not inject all required fields into class ca.demo.web.contentservices.core.impl.PageExporterImplProcessing Info: Page=/content/demo/internal/exportsite/en/clientaccess/help/secondlevela/level3Resource Path=/content/demo/internal/exportsite/en/clientaccess/help/secondlevela/level3/jcr:contentCell=...

Views

727

Like

1

Replies

4
Re: Sling Model with custom selector not working in AEM 6.5 - Adobe Experience Manager 18-11-2021
Thanks now its work. But now when I am using Sling model delegation pattern for retrieving page get exported items I am getting Null pointer exception. @Model(adaptables = SlingHttpServletRequest.class, adapters = { PageExporter.class,ComponentExporter.class, Page.class }, resourceType = PageExporterImpl.RESOURCE_TYPE, defaultInjectionStrategy=DefaultInjectionStrategy.OPTIONAL)@exporter(name = ExporterConstants.SLING_MODEL_EXPORTER_NAME,selector = "mobile",extensions = ExporterConstants.SLING_MO...

Views

768

Like

1

Replies

6
Re: Sling Model with custom selector not working in AEM 6.5 - Adobe Experience Manager 18-11-2021
Sure, please find the interface PageExporter code below: @ConsumerTypepublic interface PageExporter extends ComponentExporter{default String getLanguage() {return null;}default String getTitle() {return null;}default String getDescription() {return null;}}

Views

780

Like

1

Replies

8
Re: Sling Model with custom selector not working in AEM 6.5 - Adobe Experience Manager 18-11-2021
Actually, we are planning to use the exporter at two level, one is page level and second is component level, but we want to run these exporter on the basis of selector. contentservices/components/structure/page - It's resource super type is core/wcm/components/page/v2/page Please let me know if you need any further details. Thanks

Views

787

Like

1

Replies

10
Re: Sling Model with custom selector not working in AEM 6.5 - Adobe Experience Manager 18-11-2021
No, that's not the issue, I have already tried that also. But getting the same error. @Model(adaptables = SlingHttpServletRequest.class, adapters = { PageExporter.class,ComponentExporter.class }, resourceType = PageExporterImpl.RESOURCE_TYPE)@exporter(name = ExporterConstants.SLING_MODEL_EXPORTER_NAME,selector="mobile",extensions = ExporterConstants.SLING_MODEL_EXTENSION)//@Model(adaptables = Resource.class, resourceType="/apps/contentservices/components/structure/page", defaultInjectionStrategy...

Views

800

Like

1

Replies

12
Re: Sling Model with custom selector not working in AEM 6.5 - Adobe Experience Manager 18-11-2021
Getting the same error. Thanks

Views

820

Like

1

Replies

0
Re: Sling Model with custom selector not working in AEM 6.5 - Adobe Experience Manager 18-11-2021
We are doing some POC on local environment, before deciding the actual design.

Views

144

Like

1

Replies

0
Likes from