since ‎08-05-2019
‎13-08-2020
ravi_shankerj14
Level 1
Pragmatically accessing jcr repository in sling servlet ravi_shankerj14 - Adobe Experience Manager
Hi,I was trying to access jcr repository of QA instance from the dev instance using a sling servlet. But i am facing an exception as mentioned below: Please help me out with this. And also let me know if this scenario is possible or not. Sling Servlet code:package com.demo.core.servlets;import com.google.gson.JsonArray;import com.google.gson.JsonObject;import com.demo.core.utils.Entity;import com.demo.core.utils.EntityUtil;import com.demo.core.utils.impl.EntityUtilImpl;import org.apache.jackrabb...
70
Views
0
Likes
1
Answers and Comments
Re: Getting session has been close method whenever invoki... ravi_shankerj14 - Adobe Experience Manager
@BrianKasingli Thanks for the update. I forgot to mention that we are getting a session using system user only by creating sub-service. public ResourceResolver getServiceResourceResolver() throws RepositoryException {HashMap param = new HashMap();param.put(ResourceResolverFactory.SUBSERVICE, "testService");ResourceResolver resourceResolver = null;try {resourceResolver = rrf.getServiceResourceResolver(param);} catch (Exception e) {logger.error("Error in getting Engage Sys User Resolver : {}",e);}...
1560
Views
0
Likes
0
Comments
Getting session has been close method whenever invoking any event object method ravi_shankerj14 - Adobe Experience Manager
Hi There, I am getting an error called "this session has been closed " while accessing getNodes() method in event listener using jcr session object. Before executing the below block of code session is coming properly. But whenever i tried to access anything from jcr it is closing the session.Could you please help what can be the possible reason for this ?jcrContentNode = getJCRContentNode(event.getProperty(SlingConstants.PROPERTY_PATH).toString());/*after event.getProperty(...) execution session...
1584
Views
0
Likes
4
Answers and Comments
Re: Multifield is adding an extra field in the next text... ravi_shankerj14 - Adobe Experience Manager
Hi Suraj, Thanks for the update.But have a requirement to store multifield values as string[] under jcr:content node.
923
Views
0
Likes
0
Comments
Multifield is adding an extra field in the next text field ravi_shankerj14 - Adobe Experience Manager
I have two multifields. Both are text fields but while adding values to the second text field it is taking an additional , as a first field of the second multifield. is there any property i missing ?Please find the structure of textfield under multifield. Please find the storage of properties under jcr:content 
934
Views
0
Likes
2
Answers and Comments
AEM 6.5 multifield is not retaining the text field values ravi_shankerj14 - Adobe Experience Manager
I have created an multifield component that stores the values as string[] in jcr content. But after storing the values when we came back to the dialog the values were not there. Although the values are available in jcr:content of the page.
1204
Views
0
Likes
2
Answers and Comments
Multifield max validation is still adding fields after max limit reach ravi_shankerj14 - Adobe Experience Manager
Hi, I have added max limit 5 for multifield dialog validation but after reaching the message it is showing red border around the dialog but fields still can be added. Please find the below code snippet for dialog validation: (function ($, window, document) {$(window).adaptTo("foundation-registry").register("foundation.validation.validator", {// check elements that has attribute data-foundation-validation with value starting with "multifield-max"selector: "[data-foundation-validation^='max']",val...
429
Views
0
Likes
1
Answers and Comments
Re: using componentContext.cssClassNames in html which is... ravi_shankerj14 - Adobe Experience Manager
Hi Arun, This solution is working for me. Thank you for your help
492
Views
0
Likes
0
Comments
$(...).adaptTo is not a function error when trying to create dialog listener for multi-field max limit. ravi_shankerj14 - Adobe Experience Manager
I have tried the below code for setting a max limit on multifield which was working fine yesterday and today out of nowhere i am seeing the $(...).adaptTo is not a function error and Coral is not defined error on console. $(window).adaptTo("foundation-registry").register("foundation.validation.validator", {// check elements that has attribute data-foundation-validation with value starting with "multifield-max"selector: "[data-foundation-validation^='multifield-max']",validate: function(el) {debu...
793
Views
0
Likes
1
Answers and Comments
using componentContext.cssClassNames in html which is giving comma separated values ravi_shankerj14 - Adobe Experience Manager
We have a requirement where we want "${componentContext.cssClassNames}" to written space separated vales rather then comma separated value. So I try to debug this but i did not find the implementation class of "cssClassNames " method. Can you please help me in that. Find the below code snippet for the same: Output would be like /*Something*/ Please what we can do to make this comma separated values to space separated values. Through java and sightly. JS implementation is not in requirenment.
508
Views
0
Likes
2
Answers and Comments