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
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
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

46

Likes

0

Replies

1
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
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

235

Like

1

Replies

1
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
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

236

Like

1

Replies

0
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
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

244

Like

1

Replies

4
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
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

285

Like

1

Replies

6
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
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

297

Like

1

Replies

8
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
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

304

Like

1

Replies

10
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
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

317

Like

1

Replies

12
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
Getting the same error. Thanks

Views

339

Like

1

Replies

0
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
We are doing some POC on local environment, before deciding the actual design.

Views

132

Like

1

Replies

0
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
@Model(adaptables = SlingHttpServletRequest.class, adapters = { PageExporter.class,ComponentExporter.class }, resourceType = PageExporterImpl.RESOURCE_TYPE)@exporter(name = ExporterConstants.SLING_MODEL_EXPORTER_NAME,selector = "caas", extensions = ExporterConstants.SLING_MODEL_EXTENSION)public class PageExporterImpl extends com.adobe.cq.wcm.core.components.internal.models.v1.PageImpl implements PageExporter{protected static final String RESOURCE_TYPE = "contentservices/components/structure/page...

Views

356

Like

1

Replies

16
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
I am getting blank page with the above link also, only getting response from model.json Thanks

Views

364

Like

1

Replies

19
Sling Model with custom selector not working in AEM 6.5
Avatar
Boost 10
Level 2
vikrams57194913
Level 2

Likes

11 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
vikrams57194913
- Adobe Experience Manager
Hi All, I am using a Sling model exporter to export json data in AEM 6.5 and using the selector "caas". When the selector is "model" , it works perfectly. However with custom selector , it shows the below error. Invalid recursion selector value 'caas'Cannot serve request to /content/abc/internal/exportsite/en/clientaccess/help/secondlevela/level3.caas.json in org.apache.sling.servlets.get.DefaultGetServlet Already tried the below:check if this helps - Re: Sling Exporter with custom selector

Views

375

Likes

0

Replies

21
Likes from