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

adarshm65812616
adarshm65812616
Offline

Badges

Badges
9

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
2

Posts

Posts
18

Discussions

Discussions
8

Questions

Questions
10

Ideas

Ideas
0

Blog Posts

Blog Posts
1
Top badges earned by adarshm65812616
Customize the badges you want to showcase on your profile
Re: How to refer a sling model with in a sling servlet? - Adobe Experience Manager 27-03-2018
Thanks OlivBur for reminding me that. My servlet is already registered as resource type. I almost forgot about the getResource, my bad.

Views

3.4K

Likes

0

Replies

0
Re: How to refer a sling model with in a sling servlet? - Adobe Experience Manager 24-03-2018
Thanks for your suggestion but it may need to include login credentials specific for each environment, right. I was just curious about whether a sling model can be referred from a sling servlet. As it is not possible, I'll look for a different approach that suits my requirements. Thank you once again.

Views

3.3K

Likes

0

Replies

0
Re: How to refer a sling model with in a sling servlet? - Adobe Experience Manager 24-03-2018
As I have authorable parameters I have to use the Sling Model to bring the author configured data to backend. Is there any better option to bring JCR content data through servlet.

Views

3.3K

Likes

0

Replies

0
Re: How to refer a sling model with in a sling servlet? - Adobe Experience Manager 24-03-2018
I need to call a rest service by passing a JSON parameter and accept a JSON result. This service invocation should be triggered by a click event. Some request parameters should be configurable to the author, some should be read from cookie and another parameter should be passed from front end by a click event.I created a sling model to read all JCR properties and to read some values from cookie. The JSON request Param will be generated inside this slingModel. I created an OSGi service which call...

Views

3.3K

Likes

0

Replies

0
Re: How to refer a sling model with in a sling servlet? - Adobe Experience Manager 21-03-2018
Hi ,Actually 'StandardConfig' is referred to request because I have to read some values from cookie inside that slingModel. The reason why I can't call the service directly from the servlet is that the request parameter for the service call is based on the author configured value. So I have used the slingModel to get all those values and created a requestobject to call the service. This service will return the result and I am able to access that from the HTL.The one option is to reload the conte...

Views

3.3K

Likes

0

Replies

0
Re: How to refer a sling model with in a sling servlet? - Adobe Experience Manager 20-03-2018
Thanks @Jorg for the suggestion but the @ValueMapValue in the slingmodels are not getting value. I debug the code and find out that. Actually I need the method inside @Postconstruct to work before I call the model. Is there any way to solve this problem. My model class snippet is like this.@Model(adaptables = SlingHttpServletRequest.class)public class StandardrateConfig {@ValueMapValue@Via("resource")@Optional@Default(values = "")private String[] rateconfigurations;..............@SelfSlingHttpSe...

Views

3.3K

Likes

0

Replies

0
How to refer a sling model with in a sling servlet? - Adobe Experience Manager 20-03-2018
I have a sling model which inject an OSGi service. The request parameter for the service call is configurable. This service request is also generated in the sling model. This will invoke an API call and process the result in the sling model. I need to invoke this sling model inside a sling servlet call because a click event should trigger this functionality. So is there a way to invoke a sling model from a sling servlet.

Views

7.0K

Likes

0

Replies

14
Re: How to adapt response object in slingmodel? - Adobe Experience Manager 07-03-2018
In that code snippet they are using only SlingHttpServletRequest object and is adapted to the SlingHttpServletRequest class.In my case I need to use both SlingHttpServletRequest and SlingHttpResponse object. For getting cookie value I'll use the below coderequest.setCookie() [SlingHttpServletRequest]For setting cookie I need to use the below coderesponse.setCookie() [SlingHttpResponse]My question is how can I get both the objects in the same slingModel

Views

1.0K

Likes

0

Replies

0
How to adapt response object in slingmodel? - Adobe Experience Manager 07-03-2018
I need to get and set some values in cookie inside the slingModel. I am currently adapting this to SlingHttpServletRequest. Is there any way to inject SlingHttpServletResponse inside the current slingModel.

Views

1.1K

Likes

0

Replies

3
Likes given to
Likes from