since ‎08-05-2019
‎07-01-2021
ravi_shankerj14
Level 1
Cyclic references in two OSGI services
Avatar

ravi_shankerj14

ravi_shankerj14
- Adobe Experience Manager
Hi There, We have a scenario in which we need to create an reference of class B in a class A and Class A in class B. We need to know whether there is any solution to this as we are getting "service unsatisfied" and a sling exception is thrown by the service. Example:class A{​​​​​ @reference class B }​​​​​ and class B {​​​​​ @reference class A}​​​​​ Please provide your suggestions and let us know if our approach is correct or not. Thanks in advance. Regards,Ravi

Views

70

Likes

0

Replies

2
whitelist aria label in xss protection
Avatar

ravi_shankerj14

ravi_shankerj14
- Adobe Experience Manager
Hi there, Our requirement is to use "aria-label" attribute in anchor tag in source edit of RTE component. We have also tried by overlaying the "xssprotection/config.xml" and adding this attribute to the tag but still unable to resolve the issue. changes we have done in config.xml:

Views

150

Likes

0

Replies

2
Pragmatically accessing jcr repository in sling servlet
Avatar

ravi_shankerj14

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...

Views

129

Likes

0

Replies

1
Re: Getting session has been close method whenever invoki...
Avatar

ravi_shankerj14

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);}...

Views

1.6K

Likes

0

Replies

0
Getting session has been close method whenever invoking any event object method
Avatar

ravi_shankerj14

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...

Views

1.6K

Likes

0

Replies

4
Re: Multifield is adding an extra field in the next text...
Avatar

ravi_shankerj14

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.

Views

971

Likes

0

Replies

0
Multifield is adding an extra field in the next text field
Avatar

ravi_shankerj14

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 

Views

982

Likes

0

Replies

2
AEM 6.5 multifield is not retaining the text field values
Avatar

ravi_shankerj14

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.

Views

1.3K

Likes

0

Replies

2
Multifield max validation is still adding fields after max limit reach
Avatar

ravi_shankerj14

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...

Views

477

Likes

0

Replies

1
Re: using componentContext.cssClassNames in html which is...
Avatar

ravi_shankerj14

ravi_shankerj14
- Adobe Experience Manager
Hi Arun, This solution is working for me. Thank you for your help

Views

537

Likes

0

Replies

0
$(...).adaptTo is not a function error when trying to create dialog listener for multi-field max limit.
Avatar

ravi_shankerj14

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...

Views

935

Likes

0

Replies

1
using componentContext.cssClassNames in html which is giving comma separated values
Avatar

ravi_shankerj14

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.

Views

553

Likes

0

Replies

2