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

MohitKumarK
MohitKumarK
Offline

Badges

Badges
17

Accepted Solutions

Accepted Solutions
7

Likes Received

Likes Received
29

Posts

Posts
27

Discussions

Discussions
6

Questions

Questions
21

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by MohitKumarK
Customize the badges you want to showcase on your profile
Including external js into clientlibrary - Adobe Experience Manager 16-11-2021
Hi, For us there is a 3rd party js needed to work on our site. Is there any option to include 3rd party js in our clientlibrary.

Views

168

Likes

0

Replies

2
Re: Null Pointer Exception in Servlet Testing which having OSGi configurations - Adobe Experience Manager 16-11-2021
Hi @siva_k222 ,Instead of having when for config.apiUrl have when then for ratesIntegrationServiceImpl.getApiUrl and similarly for other variables.Thanks!

Views

928

Like

1

Replies

1
Re: I want to dynamically add dropdown to the dialog using servlet without ACS common - Adobe Experience Manager 16-11-2021
Hi @Ronnie09 ,I can see you are having /apps as your servlet path probably that might be the issue. Please try with /bin or path which is allowed in your instance for your project.Thanks!

Views

193

Like

1

Replies

0
Re: Delegation Pattern for Sling Models returns null object - Adobe Experience Manager 15-11-2021
@TarunKumar ,Resource resource = req.getResourceResolver().getResource("/content/hq/en/testpage");in this line what ever the path you are giving, that resource should be of type myproject/components/content/navigation.

Views

721

Like

1

Replies

0
Re: Customized Rendition Servlet - Adobe Experience Manager 15-11-2021
Hi @kevingtan , You can try with giving service.ranking:Integer= in component annotation. The higher the number the earlier in the filter chain. You can provide extension, selector as an array. Please refer this document on how to use attributes in component annotation.http://www.sgaemsolutions.com/2017/07/migration-of-scr-annotations-to-osgi-r6.html Thanks!

Views

243

Like

1

Replies

1
Re: Delegation Pattern for Sling Models returns null object - Adobe Experience Manager 15-11-2021
Hi @TarunKumar ,As per your sling model, you are extending for navigation component. But you are trying to adapt a page as your navigation model. May be thats the reason you are getting null. Try to adapt a resource which is of type (myproject/components/content/navigation).Remember this navigation component should extend (sling:resourceSuperType) as core navigation component.Thanks!

Views

728

Like

1

Replies

2
Re: Delegation Pattern for Sling Models returns null object - Adobe Experience Manager 12-11-2021
Hi @TarunKumar , In order to use sling delegation, you have to have adaptable of your sling model as SlingHttpServletRequest and resourceType property in model annotation. your component should have property slingResourceSuperType pointed to right component. https://aemexplained.wordpress.com/aem-guide/extending-component-using-sling-delegation/ In your case whatever the resource you are trying to adapt. It should point to a component which has this slingResourceSuperType in it. if you can share...

Views

764

Like

1

Replies

4
Re: Recommended way Sling Servlet Post method to send json raw data - Adobe Experience Manager 06-11-2021
When doing a ajax call use something like below var square = {};square.length = 10;square.width = 10;$.ajax(url: url,data: JSON.stringify(square),dataType: “json”contentType: “application/json”,Type: “POST”); while reading in servlet you can use like below: String requestBody = request.getReader().lines().collect(Collectirs.joining());you can use any Utils class to convert from string to json or java bean. Thanks!

Views

573

Like

1

Replies

0
Re: AEM 6.5 - References in service class are null when extended - Adobe Experience Manager 06-11-2021
Hi @Raghul87 ,I feel you need to inject BaseClass in your ExtendedClass. Inheritance might not work in services I guess.Thanks!

Views

393

Like

1

Replies

0
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory - Adobe Experience Manager 04-11-2021
Hi @RobertHarper , If you can send me sample test class how you are trying to do will help.

Views

4.5K

Like

1

Replies

0